{"id":15038904,"url":"https://github.com/anzfactory/kakusan","last_synced_at":"2025-04-10T00:03:24.579Z","repository":{"id":56917038,"uuid":"172491918","full_name":"anzfactory/KAKUSAN","owner":"anzfactory","description":"Automatically detect when a user takes a screenshot, and share that screenshot.","archived":false,"fork":false,"pushed_at":"2019-03-12T12:17:37.000Z","size":4162,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-10T00:02:49.220Z","etag":null,"topics":["cocoapods","screenshot","share","swift4"],"latest_commit_sha":null,"homepage":null,"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/anzfactory.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}},"created_at":"2019-02-25T11:19:49.000Z","updated_at":"2024-03-14T02:19:22.000Z","dependencies_parsed_at":"2022-08-21T03:50:39.605Z","dependency_job_id":null,"html_url":"https://github.com/anzfactory/KAKUSAN","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anzfactory%2FKAKUSAN","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anzfactory%2FKAKUSAN/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anzfactory%2FKAKUSAN/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anzfactory%2FKAKUSAN/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anzfactory","download_url":"https://codeload.github.com/anzfactory/KAKUSAN/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248131321,"owners_count":21052819,"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":["cocoapods","screenshot","share","swift4"],"created_at":"2024-09-24T20:40:43.117Z","updated_at":"2025-04-10T00:03:24.548Z","avatar_url":"https://github.com/anzfactory.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KAKUSAN\n\n[![CI Status](https://img.shields.io/travis/anzfactory/KAKUSAN.svg?style=flat)](https://travis-ci.org/anzfactory/KAKUSAN)\n[![Version](https://img.shields.io/cocoapods/v/KAKUSAN.svg?style=flat)](https://cocoapods.org/pods/KAKUSAN)\n[![License](https://img.shields.io/cocoapods/l/KAKUSAN.svg?style=flat)](https://cocoapods.org/pods/KAKUSAN)\n[![Platform](https://img.shields.io/cocoapods/p/KAKUSAN.svg?style=flat)](https://cocoapods.org/pods/KAKUSAN)\n\n![ANZSingleImageViewer](https://github.com/anzfactory/KAKUSAN/blob/master/Screenshots/KAKUSAN.gif)\n\nAutomatically detect when a user takes a screenshot, and share that screenshot.  \n(with \"UIActivityViewController\")\n\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## Requirements\n\n- Xcode v10.1\n- Swift v4.2\n- iOS v10.0+\n\n## Installation\n\nKAKUSAN is available through [CocoaPods](https://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'KAKUSAN'\n```\n\n## Usage\n\n```swift\nKAKUSAN.shared.start()\n```\n\n### Coniguration\n\n```swift\nvar config = KAKUSAN.Config(text: \"Share Text\", url: URL(string: \"https://example.com/\"))\nconfig.alert.title = \"Share!\"\nconfig.alert.message = \"Would you like to share screenshot?\"\nconfig.alert.style = .actionSheet\nconfig.alert.delay = 2.0\nconfig.alert.action.positiveText = \"Done\"\nconfig.alert.action.negativeText = \"Cancel\"\nconfig.watermark = KAKUSAN.Watermark(\n    image: UIImage(named: \"watermark\")!,\n    alpha: 0.4,\n    position: .bottomRight(padding: 16.0)\n)\nKAKUSAN.shared.configure(config)\n```\n\n### Customize confirmation dialog\n\n```swift\nKAKUSAN.shared.confirmationDelegate = self\n\n// ConfirmationDelegate\nextension ViewController: KAKUSANConfirmationDelegate {\n    \n    func kakusanConfirmation(screenshot: UIImage, handler: @escaping KAKUSANHandler) {\n        // show custom dialog\n    }\n}\n```\n\n## Author\n\nanzfactory, anz.factory@gmail.com\n\n## License\n\nKAKUSAN is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanzfactory%2Fkakusan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanzfactory%2Fkakusan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanzfactory%2Fkakusan/lists"}