BTNavigationDropdownMenu alternatives and similar libraries
Based on the "Menu" category.
Alternatively, view BTNavigationDropdownMenu alternatives based on common mentions on social networks and blogs.
-
RESideMenu
iOS 7/8 style side menu with parallax effect. -
ViewDeck
An implementation of the sliding menu found in various iOS apps. -
PageMenu
A paging menu controller built from other view controllers placed inside a scroll view (like Spotify, Windows Phone, Instagram) -
SideMenu
Simple side/slide menu control for iOS, no code necessary! Lots of customization. Add it to your project in 5 minutes or less. -
SlideMenuControllerSwift
iOS Slide Menu View based on Google+, iQON, Feedly, Ameba iOS app. It is written in pure swift. -
Persei
Animated top menu for UITableView / UICollectionView / UIScrollView written in Swift -
CircleMenu
:octocat: ⭕️ CircleMenu is a simple, elegant UI menu with a circular layout and material design animations. Swift UI library made by @Ramotion -
PagingMenuController
Paging view controller with customizable menu in Swift. -
Parchment
A paging view controller with a highly customizable menu ✨ -
Side-Menu.iOS
Animated side menu with customizable UI -
GuillotineMenu
Our Guillotine Menu Transitioning Animation implemented in Swift reminds a bit of a notorious killing machine. -
Context-Menu.iOS
You can easily add awesome animated context menu to your app. -
ENSwiftSideMenu
A simple side menu for iOS written in Swift. -
SideMenuController
A side menu controller written in Swift for iOS -
Panels
Panels is a framework to easily add sliding panels to your application -
IGLDropDownMenu
An iOS drop down menu with pretty animation and easy to customize. -
YNDropDownMenu
✨ Awesome Dropdown menu for iOS with Swift 5.0 -
PagingKit
PagingKit provides customizable menu UI. It has more flexible layout and design than the other libraries. -
SwipeMenuViewController
Swipable tab and menu View and ViewController. -
PopMenu
PopMenu is pop animation menu inspired by Sina weibo / NetEase app. -
FlowingMenu
Interactive view transition to display menus with flowing and bouncing effects in Swift -
InteractiveSideMenu
iOS Interactive Side Menu written in Swift. -
SPLarkController
Custom transition between controllers. Settings controller for your iOS app. -
ContextMenu
An iOS context menu UI inspired by Things 3. -
MenuItemKit
UIMenuItem with image and closure(block) action -
VHBoomMenuButton
A menu which can ... BOOM! - iOS -
LLSlideMenu
This is a spring slide menu for iOS apps - 一个弹性侧滑菜单 -
AirBar
iOS library - UIScrollView driven expandable menu. -
MKDropdownMenu
🔻 Dropdown Menu for iOS with many customizable parameters to suit any needs -
ExpandingMenu
ExpandingMenu is menu button for iOS written in Swift. -
SwiftyMenu
Simple and Elegant Drop down menu for iOS 🔥💥 -
FrostedSidebar
Hamburger Menu using Swift and iOS 8 API's -
XXXRoundMenuButton
A simple circle style menu. -
CategorySliderView
slider view for choosing categories. add any UIView type as category item view. Fully customisable -
AKSideMenu
Beautiful iOS side menu library with parallax effect. Written in Swift -
DTPagerController
A fully customizable container view controller to display a set of ViewControllers in a horizontal scroll view. Written in Swift. -
RadialMenu
RadialMenu is a custom control for providing a touch context menu (like iMessage recording in iOS 8) built with Swift & POP -
DropDownMenuKit
UIKit drop down menu, simple yet flexible and written in Swift -
AZDropdownMenu
A simple dropdown menu component for iPhone -
VLDContextSheet
Context menu similar to the one in the Pinterest iOS app -
KWDrawerController
Drawer view controller that easy to use! -
RHSideButtons
Library provides easy to implement variation of Android (Material Design) Floating Action Button for iOS. You can use it as your app small side menu. 🌶
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of BTNavigationDropdownMenu or a related project?
README
Introduction
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.
Installation
CocoaPods
BTNavigationDropdownMenu is available through CocoaPods. To install it, simply add the following line to your Podfile:
use_frameworks!
pod 'BTNavigationDropdownMenu'
Go ahead and import BTNavigationDropdownMenu into your own Swift files
import BTNavigationDropdownMenu
Carthage
Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.
You can install Carthage with Homebrew using the following command:
$ brew update
$ brew install carthage
To integrate BTNavigationDropdownMenu into your Xcode project using Carthage, specify it in your Cartfile
:
github "PhamBaTho/BTNavigationDropdownMenu" ~> 0.7
Run carthage update
to build the framework and drag the built BTNavigationDropdownMenu.framework
into your Xcode project.
Usage
Instantiate
Start by creating an Array that contains strings as elements of a dropdown list:
let items = ["Most Popular", "Latest", "Trending", "Nearest", "Top Picks"]
Create a new instance of BTNavigationDropdownMenu:
let menuView = BTNavigationDropdownMenu(navigationController: self.navigationController, containerView: self.navigationController!.view, title: BTTitle.title("Dropdown Menu"), items: items)
or like this:
let menuView = BTNavigationDropdownMenu(title: BTTitle.index(1), items: items)
BTTitle is an enum. We can set BTTitle.title(string)
or BTTitle.index(Int)
(Note: BTTitle.index
is the index of defined items
array).
By default, navigationController
is the topmost navigation controller and containerView
is keyWindow.
(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
.)
Set title of navigation bar as menuView:
self.navigationItem.titleView = menuView
Call BTNavigationDropdownMenu closure to get the index of selected cell:
menuView.didSelectItemAtIndexHandler = {[weak self] (indexPath: Int) -> () in
print("Did select item at index: \(indexPath)")
self.selectedCellLabel.text = items[indexPath]
}
menuView.show()
or menuView.hide()
to show or hide dropdown menu manually.
menuView.toggle()
to toogle dropdown menu shown/hide.
menuView.isShown
(Boolean type) property to check showing state of dropdown menu.
menuView.updateItems(items: [AnyObject])
to update items in dropdown menu.
Customization
First, assign the items and frame for the dropdown menu. Then, customize the look and feel of the menu by overriding these properties:
Name | Description | Default value |
---|---|---|
navigationBarTitleFont |
Navigation bar title font | System font, bold, size 17 |
cellHeight |
Cell height | 50 |
arrowImage |
Arrow next to the navigation title | Provided image |
arrowPadding |
Padding between the navigation title and arrow | 15 |
cellBackgroundColor |
Cell background color | UIColor.white |
cellSeparatorColor |
Cell separator color | UIColor.darkGray |
cellTextLabelColor |
Text color inside of the cell | UIColor.darkGray |
cellTextLabelFont |
Text font inside the cell | System font, bold, size 17 |
cellTextLabelAlignment |
Text alignment inside of the cell | NSTextAlignment.left |
cellSelectionColor |
Selected color of the cell | UIColor.lightGray |
checkMarkImage |
Checkmark icon for the cell | Provided image |
animationDuration |
Animation duration for showing/hiding of the menu | 0.3 |
maskBackgroundColor |
Mask layer color | UIColor.black |
maskBackgroundOpacity |
Opacity of the mask layer | 0.3 |
menuTitleColor |
Title color displayed in the menu | UIColor.lightGray |
shouldKeepSelectedCellColor |
Selected cell color visibility when menu is shown | false |
shouldChangeTitleText |
Ability to change the selected title text | true |
selectedCellTextLabelColor |
Selected cell text label color | UIColor.darkGray |
arrowTintColor |
Tint color of the arrow | UIColor.white |
Requirement
- iOS 9.0+
Changelog
See the CHANGELOG for details
License
BTNavigationDropdownMenu is available under the MIT License. See the LICENSE for details.
*Note that all licence references and agreements mentioned in the BTNavigationDropdownMenu README section above
are relevant to that project's source code only.