{"id":19608948,"url":"https://github.com/davecom/dkdropmenu","last_synced_at":"2025-07-26T08:38:30.751Z","repository":{"id":33321180,"uuid":"36965922","full_name":"davecom/DKDropMenu","owner":"davecom","description":"A simple iOS drop down list written in Swift.","archived":false,"fork":false,"pushed_at":"2017-09-18T04:05:05.000Z","size":130,"stargazers_count":25,"open_issues_count":1,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-05T04:22:57.942Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"simetnicbr/tools-go","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/davecom.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-06-06T03:26:48.000Z","updated_at":"2021-07-19T12:32:47.000Z","dependencies_parsed_at":"2022-08-20T19:33:02.690Z","dependency_job_id":null,"html_url":"https://github.com/davecom/DKDropMenu","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/davecom/DKDropMenu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davecom%2FDKDropMenu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davecom%2FDKDropMenu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davecom%2FDKDropMenu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davecom%2FDKDropMenu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davecom","download_url":"https://codeload.github.com/davecom/DKDropMenu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davecom%2FDKDropMenu/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267141147,"owners_count":24041982,"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","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-11T10:18:42.987Z","updated_at":"2025-07-26T08:38:30.710Z","avatar_url":"https://github.com/davecom.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DKDropMenu\nDKDropMenu is a simple iOS drop down list written in Swift. It expands and collapses. It allows the user to select only one item at a time. Items are just Strings. A delegate is notified when selection occurs. DKDropMenu is IBDesignable and IBInspectable with customizable colors, font, and row heights.\n\n![DKDropMenu1](https://raw.githubusercontent.com/davecom/DKDropMenu/master/DKDropMenu.png)\n![DKDropMenu2](https://raw.githubusercontent.com/davecom/DKDropMenu/master/DKDropMenu.gif)\n\n## Installation\nUse the cocoapod `DKDropMenu` or simply include `DKDropMenu.swift` in your project. DKDropMenu 0.3.0 and above requires Swift 4. Use version 0.2.0 for Swift 3 Support. Use version 0.1.6 for Swift 2 support.\n\n## Usage\nCreate a DKDropMenu in IB or in code (using UIView's init methods). Then add items and set a delegate:\n```\ndropMenu.add(names: [\"hello\", \"goodbye\", \"why?\"])\ndropMenu.delegate = self\n```\nMake sure to implement the single method the delegate (DKDropMenuDelegate) must implement:\n```\nfunc itemSelected(withIndex: Int, name: String) {\n    println(\"\\(name) selected\");\n}\n```\nThe delegate can also optionally implement the method \n```\nfunc collapsedChanged()\n```\nto be notified when the collapse status of the menu changes.\n\nItems can be added or removed \n```\nfunc add(names: [String])\nfunc add(name: String)\nfunc remove(atIndex: Int)\nfunc remove(name: String)\nfunc removeAll()\n```\nThe properties `collapsed` (Bool) and `selectedItem` (String) can be manually modified.\n\n## License and Authorship\nReleased under the MIT License. Copyright 2015-2016 David Kopec. Please open issues on GitHub.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavecom%2Fdkdropmenu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavecom%2Fdkdropmenu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavecom%2Fdkdropmenu/lists"}