{"id":22002171,"url":"https://github.com/kenanatmaca/kactionmenu","last_synced_at":"2025-05-01T12:13:24.188Z","repository":{"id":56917135,"uuid":"203050118","full_name":"KenanAtmaca/KActionMenu","owner":"KenanAtmaca","description":"Like to iOS 3D touch menu","archived":false,"fork":false,"pushed_at":"2019-08-21T09:06:46.000Z","size":17,"stargazers_count":23,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-01T12:13:18.961Z","etag":null,"topics":["animation","ios","ios-swift","ios-ui","menu","swift","touchscreen"],"latest_commit_sha":null,"homepage":"","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/KenanAtmaca.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-08-18T19:54:51.000Z","updated_at":"2024-02-21T04:40:51.000Z","dependencies_parsed_at":"2022-08-21T03:50:38.091Z","dependency_job_id":null,"html_url":"https://github.com/KenanAtmaca/KActionMenu","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KenanAtmaca%2FKActionMenu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KenanAtmaca%2FKActionMenu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KenanAtmaca%2FKActionMenu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KenanAtmaca%2FKActionMenu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KenanAtmaca","download_url":"https://codeload.github.com/KenanAtmaca/KActionMenu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251871582,"owners_count":21657474,"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":["animation","ios","ios-swift","ios-ui","menu","swift","touchscreen"],"created_at":"2024-11-29T23:16:44.342Z","updated_at":"2025-05-01T12:13:24.152Z","avatar_url":"https://github.com/KenanAtmaca.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KActionMenu\n\n\u003cbr\u003e\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://user-images.githubusercontent.com/16580898/63414218-0f78d080-c404-11e9-93e7-9e88ddd182ca.gif\" width=\"35%\"/\u003e\n\u003cimg src=\"https://user-images.githubusercontent.com/16580898/63414255-23bccd80-c404-11e9-8cd3-2ab41d01e9d1.gif\" width=\"35%\"/\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"MIT Licance\" src=\"https://img.shields.io/github/license/KenanAtmaca/KActionMenu\"/\u003e\n  \u003cimg alt=\"Pod\" src=\"https://img.shields.io/cocoapods/p/KActionMenu\"/\u003e\n  \u003cimg alt=\"Tag\" src=\"https://img.shields.io/github/v/tag/KenanAtmaca/KActionMenu?sort=semver\"/\u003e\n  \u003cimg alt=\"Swift\" src=\"https://img.shields.io/badge/Swift-4.2%2B-orange\"/\u003e\n\u003c/p\u003e\n\n## Requirements\n\n- Xcode 9.0 +\n- iOS 11.0 or greater\n\n## Installation\n\n### CocoaPods\n\n1. Install [CocoaPods](http://cocoapods.org)\n2. Add this repo to your `Podfile`\n\n```ruby\nplatform :ios, '11.0'\n\ntarget 'ProjectName' do\n  use_frameworks!\n  pod 'KActionMenu'\nend\n```\n\n3. Run `pod install`\n4. Open up the new `.xcworkspace` that CocoaPods generated\n5. Whenever you want to use the library: `import KActionMenu`\n\n### Manually\n\n1. Simply download the `KActionMenu` source files and import them into your project.\n\n## Usage\n\n```Swift\nimport UIKit\n\nclass ViewController: UIViewController {\n    \n    @IBOutlet weak var bgImageView: UIImageView!\n    \n    var menu:KActionMenu!\n\n    override func viewDidLoad() {\n        super.viewDidLoad()\n        bgImageView.addGestureRecognizer(UILongPressGestureRecognizer(target: self, action: #selector(longPressAction)))\n        \n        menu = KActionMenu(rootView: self.view) // 1.\n        menu.view.table.actionDelegate = self\n        menu.view.screenDelegate = self\n        menu.setMenuStyle(.light) // .light, .dark\n    }\n    \n    @objc func longPressAction(gesture: UILongPressGestureRecognizer) {\n        let location = gesture.location(in: bgImageView)\n        \n        menu.show(items: [(\"Follow\", UIImage(named: \"add\")), (\"Camera\", UIImage(named: \"cam\")), (\"Share\", UIImage(named: \"share\")), (\"Like\", UIImage(named: \"like\"))], position: CGPoint(x: location.x, y: location.y), animation: .scale) // 2.\n    }\n}\n\nextension ViewController: KActionDelegate, KActionScreenDelegate {\n    func didCloseScreen() {\n        print(\" - Closed - \")\n    }\n    \n    func touchItem(name: String, index: Int) {\n        print(name, index)\n        self.menu.view.close()\n    }\n}\n```\n\n## License\nUsage is provided under the [MIT License](http://http//opensource.org/licenses/mit-license.php). See LICENSE for the full details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenanatmaca%2Fkactionmenu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkenanatmaca%2Fkactionmenu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenanatmaca%2Fkactionmenu/lists"}