{"id":15037513,"url":"https://github.com/cwwise/cwactionsheet","last_synced_at":"2025-08-02T08:06:11.539Z","repository":{"id":56905286,"uuid":"101594989","full_name":"cwwise/CWActionSheet","owner":"cwwise","description":"模仿微信ActionSheet","archived":false,"fork":false,"pushed_at":"2018-06-06T14:59:27.000Z","size":170,"stargazers_count":48,"open_issues_count":1,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T17:05:34.354Z","etag":null,"topics":["actionsheet","swift3"],"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/cwwise.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":"2017-08-28T02:10:03.000Z","updated_at":"2023-08-16T01:47:21.000Z","dependencies_parsed_at":"2022-08-20T19:20:26.015Z","dependency_job_id":null,"html_url":"https://github.com/cwwise/CWActionSheet","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwwise%2FCWActionSheet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwwise%2FCWActionSheet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwwise%2FCWActionSheet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwwise%2FCWActionSheet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cwwise","download_url":"https://codeload.github.com/cwwise/CWActionSheet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248127173,"owners_count":21052199,"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":["actionsheet","swift3"],"created_at":"2024-09-24T20:34:52.802Z","updated_at":"2025-04-09T23:24:21.130Z","avatar_url":"https://github.com/cwwise.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CWActionSheet\n\n\u003e 仿写微信项目，需要类似微信的ActionSheet，找到比较合适OC版本[LCActionSheet](https://github.com/iTofu/LCActionSheet)，所以参照这个 完成了一个简单版本，还待完善。\n\n\n## 目录 Contents\n\n* [环境 Requirements](#环境-requirements)\n* [功能 Feature](#功能-feature)\n* [预览 Preview](#预览-preview)\n* [使用 Usage](#使用-usage)\n* [鸣谢 Thanks](#鸣谢-thanks)\n* [许可 License](#许可-license)\n\n## 环境 Requirements\n\n* iOS 8.0+\n* Xcode 8.3+\n* Swift3.1\n\n## 功能 Feature\n- [x] 模仿微信ActionSheet\n- [ ] 支持横竖屏旋转\n\n## 预览 Preview\n\n![ActionSheetDemo01](https://github.com/cwwise/CWActionSheet/blob/master/Preview/ActionSheetDemo01.png)\n![ActionSheetDemo02](https://github.com/cwwise/CWActionSheet/blob/master/Preview/ActionSheetDemo02.png)\n\n\n## 使用 Usage\n\n* 导入方法：\n \n  * 方法一（推荐使用）：[CocoaPods](https://cocoapods.org/)：`pod 'CWActionSheet'`\n\n* 在相应位置导入头文件：`import CWActionSheet`\n\n* 调用下列任意方法即可：\n\n```swift\n    let clickedHandler = { (sheetView: ActionSheetView, index: Int) in\n            print(\"点击\\(index)\")\n    }\n    let title = \"Default CWActionSheet\"\n    let actionSheet = ActionSheetView(title: title,\n                                      cancelButtonTitle: \"Cancel\",\n                                      otherButtonTitles: [\"Delete\"],\n                                      clickedHandler: clickedHandler)\n    actionSheet.destructiveButtonIndex = 0\n    actionSheet.show()\n```\n\n\n## 鸣谢 Thanks\n\n* 参考 [LCActionSheet](https://github.com/iTofu/LCActionSheet)\n\n## 许可 License\n\nCWActionSheet is released under the [MIT License](https://github.com/cwwise/CWActionSheet/blob/master/LICENSE).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcwwise%2Fcwactionsheet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcwwise%2Fcwactionsheet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcwwise%2Fcwactionsheet/lists"}