Dropdown menu in UIView by extension
JHDropDownMenu updated differently from 1.0.
If you used 1.0 you should modify code or use pod 'JHDropDownMenu', '~> 1.0'
To run the example project, clone the repo, and run pod install
from the Example directory first.
JHDropDownMenu is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'JHDropDownMenu'
import JHDropDownMenu
Now you can use dropdown any UIView
let dropdown = UIView.getDropDown(T.self)
You can set items as follows
dropdown.set(items: [T], cellView: ((T) -> UIView))
Also you can set multiple section items as follows
dropdown.set(items: [[T]], cellView: ((T) -> UIView), sectionView: ((T) -> UIView?))
You can customize listView (UITableView)
dropdown.setupListView: (UITableView -> Void)
Also welcome to PR whenever.
JHDropDownMenu is available under the MIT License See the LICENSE file for more info.