{"id":13684768,"url":"https://github.com/edwinbosire/DropMenu","last_synced_at":"2025-05-01T00:33:07.608Z","repository":{"id":32979740,"uuid":"36603848","full_name":"edwinbosire/DropMenu","owner":"edwinbosire","description":"A menu implementation with a slide in menu similar to Medium's menu.","archived":false,"fork":false,"pushed_at":"2017-04-18T09:09:24.000Z","size":5899,"stargazers_count":226,"open_issues_count":3,"forks_count":19,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-08-03T14:08:02.720Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/edwinbosire.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":"2015-05-31T13:19:28.000Z","updated_at":"2023-12-09T16:33:13.000Z","dependencies_parsed_at":"2022-09-04T00:41:15.783Z","dependency_job_id":null,"html_url":"https://github.com/edwinbosire/DropMenu","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edwinbosire%2FDropMenu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edwinbosire%2FDropMenu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edwinbosire%2FDropMenu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edwinbosire%2FDropMenu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edwinbosire","download_url":"https://codeload.github.com/edwinbosire/DropMenu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224230596,"owners_count":17277372,"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-02T14:00:38.509Z","updated_at":"2024-11-12T06:30:36.640Z","avatar_url":"https://github.com/edwinbosire.png","language":"Objective-C","funding_links":[],"categories":["Objective-C"],"sub_categories":[],"readme":"# Drop Menu\n\nA custom menu implementation with a slide in menu similar to Medium's menu.\n\nInspired by [RBMenu](https://github.com/RoshanNindrai/RBMenu) and [Medium](https://github.com/pixyzehn/MediumMenu).\n\n\nTo see how it works, have a look at the Examples folder.\n\nThis has not been designed to be dropped into a project as it is, a bit of re-working must be done. I will set it up as an independent component soon.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"http://i.imgur.com/ese3dUO.gif\" alt=\"Animated gif\"\u003e\n\u003c/p\u003e\n\n## Setup\n\nDrag `EBMenucontroller \u0026 EBMenuItem` from the **Drop Menu** folder into your project.\n\nCreate your menu items.\n\n```\n\n\tEBMenuItem *politics = [EBMenuItem initWithTitle:@\"Politics\" withColourScheme:[UIColor flatEmeraldColor]];\n\tEBMenuItem *culture = [EBMenuItem initWithTitle:@\"Culture\" withColourScheme:[UIColor flatAlizarinColor]];\n\tEBMenuItem *travel = [EBMenuItem initWithTitle:@\"Travel\" withColourScheme:[UIColor flatOrangeColor]];\n\tEBMenuItem *nature = [EBMenuItem initWithTitle:@\"Nature\" withColourScheme:[UIColor flatWisteriaColor]];\t\n\t\n\n```\n\nFor each menu item, there is a corresponding completionBlock that gets called when the menu is tapped. Also, we are using completion block to lazy load view controllers.\n\n```\n\n\tPoliticsViewController *politicsInitialView = [storyBoard instantiateViewControllerWithIdentifier:@\"Politics\"];\n\tpoliticsInitialView.menuItem = politics;\n\tself.viewControllers = @[politicsInitialView];\n\n\tpolitics.completionBlock = ^{\n\t\t\n\t\tself.viewControllers = @[politicsInitialView];\n\t};\n```\n\nNote, that the implementation in the example happens inside a custom `UINavigationController`, this doesn't have to be case with everyone. You can easily setup the menu items in the delegate and instead of adding the viewcontrollers to self.viewcontrollers you'll do it in `self.navigationcontroller.viewcontrollers'\n\n# FAQ\n1. Does it support storyboards?   \n**YES**\n\n2. Can I have more than 4 menu items   \n\n    **YES, but this isn't tested, you \n    might need to modify `menuHeight` constant in `EBMenuController.m` to make it all fit.**  \n3. Does it support iPad?  \n**Yes, maybe, its not been tested, but there is no reason it shouldn't work** \n\n\nIf you get to use it, please let me know on [Twitter](http://www.twitter.com/edwinbosire)\n\n## AUTHOR\n\nThis component has been lovingly crafted by [Edwin B](http://www.twitter.com/edwinbosire)\n\n## LICENSE\n\n[Apache License](https://github.com/edwinbosire/DropMenu/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedwinbosire%2FDropMenu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedwinbosire%2FDropMenu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedwinbosire%2FDropMenu/lists"}