{"id":45240511,"url":"https://github.com/phambatho/btnavigationdropdownmenu","last_synced_at":"2026-02-20T21:05:39.263Z","repository":{"id":34712924,"uuid":"38689487","full_name":"PhamBaTho/BTNavigationDropdownMenu","owner":"PhamBaTho","description":"The elegant yet functional dropdown menu, written in Swift, appears underneath the navigation bar to display a list of defined items when a user clicks on the navigation title.","archived":false,"fork":false,"pushed_at":"2022-06-30T11:35:36.000Z","size":2897,"stargazers_count":2681,"open_issues_count":59,"forks_count":408,"subscribers_count":59,"default_branch":"master","last_synced_at":"2026-01-31T21:42:21.568Z","etag":null,"topics":["dropdown-menu","ios","navigation-title","swift"],"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/PhamBaTho.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-07-07T13:29:42.000Z","updated_at":"2025-12-02T07:07:07.000Z","dependencies_parsed_at":"2022-08-08T01:16:27.635Z","dependency_job_id":null,"html_url":"https://github.com/PhamBaTho/BTNavigationDropdownMenu","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/PhamBaTho/BTNavigationDropdownMenu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhamBaTho%2FBTNavigationDropdownMenu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhamBaTho%2FBTNavigationDropdownMenu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhamBaTho%2FBTNavigationDropdownMenu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhamBaTho%2FBTNavigationDropdownMenu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PhamBaTho","download_url":"https://codeload.github.com/PhamBaTho/BTNavigationDropdownMenu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhamBaTho%2FBTNavigationDropdownMenu/sbom","scorecard":{"id":109579,"data":{"date":"2025-08-11","repo":{"name":"github.com/PhamBaTho/BTNavigationDropdownMenu","commit":"4ffaab3f5c9477fbff4df2b42aa5364e963d7970"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":1,"reason":"Found 4/29 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 5 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-15T11:49:13.351Z","repository_id":34712924,"created_at":"2025-08-15T11:49:13.351Z","updated_at":"2025-08-15T11:49:13.351Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29664535,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T19:49:36.704Z","status":"ssl_error","status_checked_at":"2026-02-20T19:44:05.372Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["dropdown-menu","ios","navigation-title","swift"],"created_at":"2026-02-20T21:05:37.522Z","updated_at":"2026-02-20T21:05:39.258Z","avatar_url":"https://github.com/PhamBaTho.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"![alt tag](https://github.com/PhamBaTho/BTNavigationDropdownMenu/blob/master/Assets/BTNavigationDropdownLogo.png)\n\n[![Pod Version](https://img.shields.io/cocoapods/v/BTNavigationDropdownMenu.svg?style=flat)](http://cocoadocs.org/docsets/BTNavigationDropdownMenu/)\n[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://github.com/PhamBaTho/BTNavigationDropdownMenu/blob/master/LICENSE)\n![Language](https://img.shields.io/badge/language-Swift-brightgreen.svg?style=flat)\n\u003c!--[![Build Status](https://travis-ci.org/PhamBaTho/BTNavigationDropdownMenu.svg?branch=master)](https://travis-ci.org/PhamBaTho/BTNavigationDropdownMenu)--\u003e\n\n## Introduction\nThe elegant yet functional dropdown menu, written in Swift, appears underneath the navigation bar to display a list of defined items when a user clicks on the navigation title.\n\n![alt tag](https://github.com/PhamBaTho/BTNavigationDropdownMenu/blob/master/Assets/Demo.gif)\n\n## Installation\n### CocoaPods\n**BTNavigationDropdownMenu** is available through [CocoaPods](http://cocoapods.org). To install it, simply add the following line to your Podfile:\n\n```ruby\nuse_frameworks!\npod 'BTNavigationDropdownMenu'\n```\nGo ahead and **import** BTNavigationDropdownMenu into your own Swift files \n```swift\nimport BTNavigationDropdownMenu\n```\n\n## Carthage\n[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.\n\nYou can install Carthage with [Homebrew](https://brew.sh/) using the following command:\n\n```bash\n$ brew update\n$ brew install carthage\n```\n\nTo integrate BTNavigationDropdownMenu into your Xcode project using Carthage, specify it in your `Cartfile`:\n\n```ogdl\ngithub \"PhamBaTho/BTNavigationDropdownMenu\" ~\u003e 0.7\n```\n\nRun `carthage update` to build the framework and drag the built `BTNavigationDropdownMenu.framework` into your Xcode project.\n\n## Usage\n### Instantiate\nStart by creating an Array that contains strings as **elements of a dropdown list**:\n```swift\nlet items = [\"Most Popular\", \"Latest\", \"Trending\", \"Nearest\", \"Top Picks\"]\n```\nCreate a **new instance** of BTNavigationDropdownMenu:\n```swift\nlet menuView = BTNavigationDropdownMenu(navigationController: self.navigationController, containerView: self.navigationController!.view, title: BTTitle.title(\"Dropdown Menu\"), items: items)\n```\nor like this:\n```swift\nlet menuView = BTNavigationDropdownMenu(title: BTTitle.index(1), items: items)\n```\n\nBTTitle is an enum. We can set `BTTitle.title(string)` or `BTTitle.index(Int)` (Note: `BTTitle.index` is the index of defined `items` array).\n\nBy default, `navigationController` is the topmost navigation controller and `containerView` is keyWindow. \n\n(`keyWindow` is recommended for `containerView` so that the black overlay can cover the whole screen. In some cases, `keyWindow` doesn't work properly, like using with side menu (e.g. SWRevealViewController), the dropdown menu doesn't move along with the parent view or navigation controller. To workaround this issue, you can use `self.navigationController!.view`.)\n\nSet **title of navigation bar** as menuView:\n```swift\nself.navigationItem.titleView = menuView\n```\nCall BTNavigationDropdownMenu closure to get **the index of selected cell**:\n```swift\nmenuView.didSelectItemAtIndexHandler = {[weak self] (indexPath: Int) -\u003e () in\n            print(\"Did select item at index: \\(indexPath)\")\n            self.selectedCellLabel.text = items[indexPath]\n}\n```\n`menuView.show()` or `menuView.hide()` to show or hide dropdown menu manually.\n\n`menuView.toggle()` to toogle dropdown menu shown/hide.\n\n`menuView.isShown` (Boolean type) property to check showing state of dropdown menu.\n\n`menuView.updateItems(items: [AnyObject])` to update items in dropdown menu.\n\n### Customization\nFirst, assign the items and frame for the dropdown menu. Then, customize the look and feel of the menu by overriding these properties:\n\n| Name | Description | Default value |\n|---|---|:---:|\n| `navigationBarTitleFont` |  Navigation bar title font | System font, bold, size 17 |\n| `cellHeight` | Cell height | 50 |\n| `arrowImage` | Arrow next to the navigation title | Provided image |\n| `arrowPadding` | Padding between the navigation title and arrow | 15 |\n| `cellBackgroundColor` | Cell background color | UIColor.white |\n| `cellSeparatorColor` | Cell separator color | UIColor.darkGray |\n| `cellTextLabelColor` | Text color inside of the cell | UIColor.darkGray |\n| `cellTextLabelFont` | Text font inside the cell | System font, bold, size 17 |\n| `cellTextLabelAlignment` | Text alignment inside of the cell | NSTextAlignment.left |\n| `cellSelectionColor` | Selected color of the cell | UIColor.lightGray |\n| `checkMarkImage` | Checkmark icon for the cell | Provided image |\n| `animationDuration` | Animation duration for showing/hiding of the menu | 0.3 |\n| `maskBackgroundColor` | Mask layer color | UIColor.black |\n| `maskBackgroundOpacity` | Opacity of the mask layer | 0.3 |\n| `menuTitleColor` | Title color displayed in the menu | UIColor.lightGray |\n| `shouldKeepSelectedCellColor` | Selected cell color visibility when menu is shown | false |\n| `shouldChangeTitleText` | Ability to change the selected title text | true |\n| `selectedCellTextLabelColor` | Selected cell text label color | UIColor.darkGray |\n| `arrowTintColor` | Tint color of the arrow | UIColor.white |\n\n## Requirement\n- iOS 9.0+\n\n## Changelog\nSee the [CHANGELOG](https://github.com/PhamBaTho/BTNavigationDropdownMenu/blob/master/CHANGELOG.md) for details\n\n## License\nBTNavigationDropdownMenu is available under the MIT License. See the [LICENSE](https://github.com/PhamBaTho/BTNavigationDropdownMenu/blob/master/LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphambatho%2Fbtnavigationdropdownmenu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphambatho%2Fbtnavigationdropdownmenu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphambatho%2Fbtnavigationdropdownmenu/lists"}