{"id":13602161,"url":"https://github.com/levey/AwesomeMenu","last_synced_at":"2025-04-11T08:31:38.483Z","repository":{"id":1958704,"uuid":"2889116","full_name":"levey/AwesomeMenu","owner":"levey","description":"Path 2.0 menu using CoreAnimation :)","archived":false,"fork":false,"pushed_at":"2018-09-28T10:17:06.000Z","size":885,"stargazers_count":4991,"open_issues_count":21,"forks_count":789,"subscribers_count":195,"default_branch":"master","last_synced_at":"2025-04-10T09:08:50.309Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/levey/AwesomeMenu","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/levey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-12-01T06:12:49.000Z","updated_at":"2025-03-30T13:55:37.000Z","dependencies_parsed_at":"2022-08-21T01:50:50.309Z","dependency_job_id":null,"html_url":"https://github.com/levey/AwesomeMenu","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levey%2FAwesomeMenu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levey%2FAwesomeMenu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levey%2FAwesomeMenu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levey%2FAwesomeMenu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/levey","download_url":"https://codeload.github.com/levey/AwesomeMenu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248361560,"owners_count":21090931,"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":[],"created_at":"2024-08-01T18:01:15.502Z","updated_at":"2025-04-11T08:31:38.462Z","avatar_url":"https://github.com/levey.png","language":"Objective-C","funding_links":[],"categories":["IOS 或 OSX","菜单(Menu)","Awesome lists :heart:","Objective-C","etc"],"sub_categories":[],"readme":"### DO NOT USE IT TO COPY PATH!\n\n---\n\nAwesomeMenu is a menu with the same look as the story menu of [Path](https://path.com/).\n\n---\n\n**How To**:\n\n\nCreate the menu by setting up the menu items:\n\n\tUIImage *storyMenuItemImage = [UIImage imageNamed:@\"bg-menuitem.png\"];\n\tUIImage *storyMenuItemImagePressed = [UIImage imageNamed:@\"bg-menuitem-highlighted.png\"];\n\tUIImage *starImage = [UIImage imageNamed:@\"icon-star.png\"];\n    AwesomeMenuItem *starMenuItem1 = [[AwesomeMenuItem alloc] initWithImage:storyMenuItemImage\n                                                               highlightedImage:storyMenuItemImagePressed\n                                                                   ContentImage:starImage\n                                                        highlightedContentImage:nil];\n\tAwesomeMenuItem *starMenuItem2 = [[AwesomeMenuItem alloc] initWithImage:storyMenuItemImage\n                                                               highlightedImage:storyMenuItemImagePressed\n                                                                   ContentImage:starImage\n                                                        highlightedContentImage:nil];\n\t// the start item, similar to \"add\" button of Path\n\tAwesomeMenuItem *startItem = [[AwesomeMenuItem alloc] initWithImage:[UIImage imageNamed:@\"bg-addbutton.png\"]\n                                                       highlightedImage:[UIImage imageNamed:@\"bg-addbutton-highlighted.png\"]\n                                                           ContentImage:[UIImage imageNamed:@\"icon-plus.png\"]\n                                                highlightedContentImage:[UIImage imageNamed:@\"icon-plus-highlighted.png\"]];\n\nThen, setup the menu and options:\n\n\tAwesomeMenu *menu = [[AwesomeMenu alloc] initWithFrame:self.window.bounds startItem:startItem optionMenus:[NSArray arrayWithObjects:starMenuItem1, starMenuItem2]];\n\tmenu.delegate = self;\n\t[self.window addSubview:menu];\n\nYou can also use menu options:\n\nto locate the center of \"Add\" button:\n\n\tmenu.startPoint = CGPointMake(160.0, 240.0);\n\nto set the rotate angle:\n\n\tmenu.rotateAngle = 0.0;\n\nto set the whole menu angle:\n\n\tmenu.menuWholeAngle = M_PI * 2;\n\nto set the delay of every menu flying out animation:\n\n\tmenu.timeOffset = 0.036f;\n\nto adjust the bounce animation:\n\n\tmenu.farRadius = 140.0f;\n\tmenu.nearRadius = 110.0f;\n\nto set the distance between the \"Add\" button and Menu Items:\n\n\tmenu.endRadius = 120.0f;\n\n---\n\nTwitter: [@LeveyZhu](https://twitter.com/#!/LeveyZhu)\n\nSina Weibo: [@LeveyZhu](http://weibo.com/leveyzhu)\n\nThanks for [pashields](https://github.com/pashields) providing the [youtube demo](http://www.youtube.com/watch?v=vddaYMtETjo) :)\n\nThanks for [acoomans](https://github.com/acoomans/QuadCurveMenu) for the options.\n\n\n![screenshots](http://k.minus.com/ib1kHc4lnLB8bd.gif) ![screenshots](http://k.minus.com/iovTFVTQQ192K.gif) ![screenshots](http://k.minus.com/i4BrO2tfCJxzk.gif)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevey%2FAwesomeMenu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flevey%2FAwesomeMenu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevey%2FAwesomeMenu/lists"}