{"id":16684904,"url":"https://github.com/kofktu/kuiactionsheet","last_synced_at":"2025-04-09T23:42:08.076Z","repository":{"id":56917686,"uuid":"62848982","full_name":"Kofktu/KUIActionSheet","owner":"Kofktu","description":"Custom UIActionSheet","archived":false,"fork":false,"pushed_at":"2018-09-26T14:06:42.000Z","size":268,"stargazers_count":14,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-08T06:35:28.616Z","etag":null,"topics":["custom-uiactionsheet","swift"],"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/Kofktu.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":"2016-07-08T01:21:16.000Z","updated_at":"2023-08-28T00:53:33.000Z","dependencies_parsed_at":"2022-08-21T04:50:52.547Z","dependency_job_id":null,"html_url":"https://github.com/Kofktu/KUIActionSheet","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kofktu%2FKUIActionSheet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kofktu%2FKUIActionSheet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kofktu%2FKUIActionSheet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kofktu%2FKUIActionSheet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kofktu","download_url":"https://codeload.github.com/Kofktu/KUIActionSheet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248131470,"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":["custom-uiactionsheet","swift"],"created_at":"2024-10-12T14:45:25.992Z","updated_at":"2025-04-09T23:42:08.032Z","avatar_url":"https://github.com/Kofktu.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KUIActionSheet\n\n![Swift](https://img.shields.io/badge/Swift-4.0-orange.svg)\n[![CocoaPods](http://img.shields.io/cocoapods/v/KUIActionSheet.svg?style=flat)](http://cocoapods.org/?q=name%3AKUIActionSheet%20author%3AKofktu)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n\n\u003e Custom UIActionSheet for Swift\n\n![alt tag](Screenshot/Default.png)\n![alt tag](Screenshot/DefaultWithCustomView.png)\n![alt tag](Screenshot/CustomTheme.png)\n![alt tag](Screenshot/CustomXib.png)\n\n## Requirements\n\n- iOS 8.0+\n- Xcode 9.0\n- Swift 4.2\n- Swift 3.0 ([2.0.4](https://github.com/Kofktu/KUIActionSheet/tree/2.0.4))\n\n## Installation\n\n#### CocoaPods\nKUIActionSheet is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod \"KUIActionSheet\"\n```\n\n## Usage\n\n#### KUIActionSheet\n```Swift \nimport KUIActionSheet\n\nlet actionSheet = KUIActionSheet.view(parentViewController: self)\n\nactionSheet?.add(customView: UIView\u003cKUIActionSheetItemViewProtocol\u003e)\nactionSheet?.add(item: KUIActionSheetItem(title: \"Menu1\", destructive: false) { [weak self] (item) in\n  print(item.title)\n})\nactionSheet?.add(item: KUIActionSheetItem(asyncTitle: { (completion) -\u003e Void in\n  DispatchQueue.main.asyncAfter(deadline: .now() + 2.0, execute: {\n    completion(\"Async Title\")\n  })\n}, handler: { (item) in\n  print(item)\n}))\nactionSheet?.show()\n\n```\n\n#### CustomView\n```Swift \nclass CustomView: UIView, KUIActionSheetItemViewProtocol {\n    \n    func ... () {\n      actionSheet?.dismiss()\n    }\n}\n\n```\n\n#### CustomTheme\n```Swift \npublic protocol KUIActionSheetProtocol {\n    var backgroundColor: UIColor { get }\n    var showAnimationDuration: NSTimeInterval { get }\n    var dimissAnimationDuration: NSTimeInterval { get }\n    var blurEffectStyle: UIBlurEffectStyle { get }\n    var itemTheme: KUIActionSheetItemTheme { get }\n}\n\npublic protocol KUIActionSheetItemTheme {\n    var height: CGFloat { get }\n    var font: UIFont { get }\n    var titleColor: UIColor { get }\n    var destructiveTitleColor: UIColor { get }\n}\n\n```\n\n## Authors\n\nTaeun Kim (kofktu), \u003ckofktu@gmail.com\u003e\n\n## License\n\nKUIActionSheet 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%2Fkofktu%2Fkuiactionsheet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkofktu%2Fkuiactionsheet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkofktu%2Fkuiactionsheet/lists"}