{"id":17690201,"url":"https://github.com/onmyway133/easydropdown","last_synced_at":"2025-06-17T10:07:38.669Z","repository":{"id":42432060,"uuid":"64793438","full_name":"onmyway133/EasyDropdown","owner":"onmyway133","description":":droplet: Fantastic dropdown in Swift","archived":false,"fork":false,"pushed_at":"2022-02-02T07:09:34.000Z","size":3430,"stargazers_count":309,"open_issues_count":15,"forks_count":34,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-05-20T01:04:04.512Z","etag":null,"topics":["dropdown","ios","menu","navigationbar","swift"],"latest_commit_sha":null,"homepage":"https://onmyway133.com","language":"Swift","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/onmyway133.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-02T21:22:25.000Z","updated_at":"2025-05-13T13:30:03.000Z","dependencies_parsed_at":"2022-08-19T12:20:58.437Z","dependency_job_id":null,"html_url":"https://github.com/onmyway133/EasyDropdown","commit_stats":null,"previous_names":["onmyway133/dropdowns"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/onmyway133/EasyDropdown","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onmyway133%2FEasyDropdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onmyway133%2FEasyDropdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onmyway133%2FEasyDropdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onmyway133%2FEasyDropdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onmyway133","download_url":"https://codeload.github.com/onmyway133/EasyDropdown/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onmyway133%2FEasyDropdown/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260336338,"owners_count":22993737,"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":["dropdown","ios","menu","navigationbar","swift"],"created_at":"2024-10-24T11:50:11.243Z","updated_at":"2025-06-17T10:07:33.650Z","avatar_url":"https://github.com/onmyway133.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dropdowns\n\n❤️ Support my app ❤️ \n\n- [Push Hero - pure Swift native macOS application to test push notifications](https://www.producthunt.com/posts/push-hero-2)\n- [Quick Access - Organise files in the Mac menu bar](https://www.producthunt.com/posts/quick-access)\n- [Frame recorder - Recorder gif and video with frame](https://www.producthunt.com/posts/frame-recorder)\n- [Other apps](https://onmyway133.github.io/projects/)\n\n❤️❤️😇😍🤘❤️❤️\n\nDropdown in Swift\n\n[![Version](https://img.shields.io/cocoapods/v/Dropdowns.svg?style=flat)](http://cocoadocs.org/docsets/Dropdowns)\n[![License](https://img.shields.io/cocoapods/l/Dropdowns.svg?style=flat)](http://cocoadocs.org/docsets/Dropdowns)\n[![Platform](https://img.shields.io/cocoapods/p/Dropdowns.svg?style=flat)](http://cocoadocs.org/docsets/Dropdowns)\n![Swift](https://img.shields.io/badge/%20in-swift%205.0-orange.svg)\n\n\u003cdiv align=\"center\"\u003e\n\t\u003cimg src=\"Screenshots/dropdown.gif\" height=\"400\" /\u003e\n\t\u003cimg src=\"Screenshots/x.png\" height=\"500\" /\u003e\n\u003c/div\u003e\n\n## Usage\n\n`Dropdowns` provides the quickest way to present a dropdown in your app. It is very lightweight, just provide a list of items and the action closure you want to handle.\n\n### Basic\n\n`Dropdowns` works by showing a child `UIViewController` as a dropdown from a `TitleView`. The most common use case is to show from a `UINavigationController`, in that sense, you can just create a list of items, and provide to `TitleView`.\n\n```swift\nlet items = [\"World\", \"Sports\", \"Culture\", \"Business\", \"Travel\"]\nlet titleView = TitleView(navigationController: navigationController!, title: \"Menu\", items: items)\ntitleView?.action = { [weak self] index in\n  print(\"select \\(index)\")\n}\n\nnavigationItem.titleView = titleView\n```\n\n### Customization\n\n`Dropdowns` uses `TableController` by default, to show list of items in a `UITableView`. You can customise to show anything you want by using `contentController`.\n\n```swift\nlet contentController = TableController(items: items, initialIndex: 0)\nlet dropdown = DropdownController(contentController: contentController, navigationController: navigationController)\n```\n\n### Configuration\n\nYou can also customise many aspects of `Dropdowns` via `Config`\n\n```swift\nConfig.List.DefaultCell.Text.color = UIColor.redColor()\n```\n\n## Installation\n\n**Dropdowns** is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'Dropdowns'\n```\n\n**Dropdowns** is also available through [Carthage](https://github.com/Carthage/Carthage).\nTo install just write into your Cartfile:\n\n```ruby\ngithub \"onmyway133/Dropdowns\"\n```\n\n**Dropdowns** can also be installed manually. Just download and drop `Sources` folders in your project.\n\n## Author\n\n- Khoa Pham, onmyway133@gmai.com\n\n## Credit\n\n- Hyper Interaktiv AS, ios@hyper.no\n\n## Contributing\n\nWe would love you to contribute to **Dropdowns**, check the [CONTRIBUTING](https://github.com/onmyway133/Dropdown/blob/master/CONTRIBUTING.md) file for more info.\n\n## License\n\n**Dropdowns** is available under the MIT license. See the [LICENSE](https://github.com/onmyway133/Dropdown/blob/master/LICENSE.md) file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonmyway133%2Feasydropdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonmyway133%2Feasydropdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonmyway133%2Feasydropdown/lists"}