ASDropDown
Screenshots
Example
import ASDropDown
let items = (0..<100).map({return ASDropDownItem(key: "key_\($0)", title: "item-\($0)")})
ASDropDown.openDropDown(items, nil, { (index: Int, item: String) in
self.textField.text = item
}, anchorpointView, nil)
DropDown Customization Properties
let items = (0..<100).map({return ASDropDownItem(key: "key_\($0)", title: "item-\($0)")})
ASDropDown.openDropDown(items, ASDropDownProp(UIFont.systemFont(ofSize: 15), UIColor.red), { [unowned self] (index: Int, item: String) in
self.textField.text = item
}, anchorpointView, nil)
Requirements
Installation
ASDropDown is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'ASDropDown'
Author
[email protected], [email protected]
License
ASDropDown is available under the MIT license. See the LICENSE file for more info.