Swiftpack.co - Package - salientsys/navigation-dropdown-ios

NavigationDropdown

'NavigationDropdown', a lightweight and elegant in Swift

Version License Platform Swift

Usage

To create a NavigationDropdown from UINavigationBar

Basic

NavigationDropdown works by showing a child UIViewController as a dropdown from a NavigationTitleButton. 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 NavigationTitleButton.

let items = ["World", "Sports", "Culture", "Business", "Travel"]
let titleView = NavigationTitleButton(with: self, items: items, selectedItem: nil)
titleView?.itemSelectionHandler = { [weak self] index in
  print("select \(index)")
}

navigationItem.titleView = titleView

Configuration

You can also customize many aspects of NavigationDropdown via Config

Config.List.DefaultCell.Text.color = .red

Installation

NavigationDropdown is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'NavigationDropdown'

NavigationDropdown is also available through Carthage. To install just write into your Cartfile:

github "salientsys/navigation-dropdown-ios"

NavigationDropdown can also be installed manually. Just download and drop Sources and Resources folders in your project.

Author

  • Salient Systems Corporation, mobile.salientsys@gmai.com

Credit

  • https://github.com/onmyway133/EasyDropdown. Khoa Pham, onmyway133@gmai.com

Contributing

We would love you to contribute to NavigationDropdown, check the CONTRIBUTING file for more info.

License

NavigationDropdown is available under the MIT license. See the LICENSE file for more info.

Github

link
Stars: 0

Dependencies

Used By

Total: 0

Releases

Change menu item id from Int to String - 2020-08-26 15:01:11

- 2020-06-25 19:59:09

- 2020-06-25 18:54:24

- 2020-06-25 18:09:49

- 2020-06-25 17:29:38

- 2020-06-25 01:39:17

- 2020-06-25 01:25:25