Dropdown in Swift
let items = ["World", "Sports", "Culture", "Business", "Travel"]
let titleView = TitleView(navigationController: navigationController!, title: "Menu", items: items)
titleView?.action = { [weak self] index in
print("select \(index)")
}
navigationItem.titleView = titleView
let contentController = TableController(items: items, initialIndex: 0)
let dropdown = DropdownController(contentController: contentController, navigationController: navigationController)
Config.List.DefaultCell.Text.color = UIColor.redColor()
Dropdown is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'Dropdown'
Dropdown is also available through Carthage. To install just write into your Cartfile:
github "hyperoslo/Dropdown"
Dropdown can also be installed manually. Just download and drop Sources
folders in your project.
Hyper Interaktiv AS, [email protected]
We would love you to contribute to Dropdown, check the CONTRIBUTING file for more info.
Dropdown is available under the MIT license. See the LICENSE file for more info.