{"id":15038009,"url":"https://github.com/naturaln0va/visualactivityviewcontroller","last_synced_at":"2025-04-05T04:13:19.631Z","repository":{"id":88052684,"uuid":"134573003","full_name":"naturaln0va/VisualActivityViewController","owner":"naturaln0va","description":"A way to represent what you’re sharing.","archived":false,"fork":false,"pushed_at":"2018-12-12T16:03:04.000Z","size":647,"stargazers_count":755,"open_issues_count":1,"forks_count":29,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-04-05T04:13:14.594Z","etag":null,"topics":["customization","ios","preview","sharing","swift4","uiactivityviewcontroller"],"latest_commit_sha":null,"homepage":"https://ackermann.io/posts/previewing-the-system-share-sheet","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/naturaln0va.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-23T13:22:47.000Z","updated_at":"2025-02-28T15:24:23.000Z","dependencies_parsed_at":"2023-07-23T18:15:06.136Z","dependency_job_id":null,"html_url":"https://github.com/naturaln0va/VisualActivityViewController","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naturaln0va%2FVisualActivityViewController","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naturaln0va%2FVisualActivityViewController/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naturaln0va%2FVisualActivityViewController/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naturaln0va%2FVisualActivityViewController/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/naturaln0va","download_url":"https://codeload.github.com/naturaln0va/VisualActivityViewController/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247284951,"owners_count":20913704,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["customization","ios","preview","sharing","swift4","uiactivityviewcontroller"],"created_at":"2024-09-24T20:36:47.769Z","updated_at":"2025-04-05T04:13:19.598Z","avatar_url":"https://github.com/naturaln0va.png","language":"Swift","readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"readme-resources/vavc-header-logo.png\" style=\"max-height: 250px;\" alt=\"VisualActivityViewController\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://developer.apple.com/swift/\"\u003e\u003cimg src=\"https://img.shields.io/badge/Swift-4.1-orange.svg?style=flat\" style=\"max-height: 250px;\" alt=\"Swift\"/\u003e\u003c/a\u003e\n\u003cbr\u003e\n\u003ca href=\"http://twitter.com/naturaln0va\"\u003e\u003cimg src=\"https://img.shields.io/twitter/follow/naturaln0va.svg?style=flat\" style=\"max-height: 250px;\" alt=\"Twitter\"/\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"readme-resources/vavc-preview.gif\" style=\"max-height: 250px;\" alt=\"VisualActivityViewController Preview\"\u003e\n\u003c/p\u003e\n\n## About\n\nThis project provides a preview of items being shared via `UIActivityViewController`. Example:\n\n```swift\n// standard activity view controller\nlet vc = UIActivityViewController(activityItems: [shareText])\n\n// custom activity view controller with a preview \nlet vc = VisualActivityViewController(text: shareText)\n```\n\n## Features\n* Text, Image, and URL previewing\n* Swipe gesture to dismiss the share sheet\n* Easy customization (match your app’s style)\n\n## Requirements\n\n* iOS 9.0+\n* Xcode 9.0+\n\n## Installation\n\nTo install, simply add the `VisualActivityViewController.swift` file to your project.\n\n## Advanced Usage\n\nThere are quite a few different options to customize the appearance of the preview. Check out the example project to see how some of these options work.\n\n```swift\n/// The duration for the preview fading in\nvar fadeInDuration: TimeInterval = 0.3\n\n/// The duration for the preview fading out\nvar fadeOutDuration: TimeInterval = 0.3\n\n/// The corner radius of the preview\nvar previewCornerRadius: CGFloat = 12\n\n/// The corner radius of the preview image\nvar previewImageCornerRadius: CGFloat = 3\n\n/// The side length of the preview image\nvar previewImageSideLength: CGFloat = 80\n\n/// The padding around the preview\nvar previewPadding: CGFloat = 12\n\n/// The number of lines to preview\nvar previewNumberOfLines: Int = 5\n\n/// The preview color for URL activity items\nvar previewLinkColor: UIColor = UIColor(red: 0, green: 0.47, blue: 1, alpha: 1)\n\n/// The font for the preview label\nvar previewFont: UIFont = UIFont.systemFont(ofSize: 18)\n\n/// The margin from the top of the viewController's window\nvar previewTopMargin: CGFloat = 8\n\n/// The margin from the top of the viewController's view\nvar previewBottomMargin: CGFloat = 8\n```\n\n## License\n\nThis project is available under the MIT license. See the LICENSE file for more info.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaturaln0va%2Fvisualactivityviewcontroller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnaturaln0va%2Fvisualactivityviewcontroller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaturaln0va%2Fvisualactivityviewcontroller/lists"}