Skip to content

Latest commit

 

History

History
33 lines (27 loc) · 797 Bytes

README.md

File metadata and controls

33 lines (27 loc) · 797 Bytes

BKDropDown

An API for DropDown with streams similar Rx

Installation

CocoaPods:

pod 'BKDropDown'

Manual:

Copy BKDropDown.swift, BKDropDown.storyboard to your project.

Preview

Using

let dropDown = BKDropDown.instance()
    .bind(["Item 1", "Item 2", "Item 3", "Item 4"])
    .setLayoutCell(normal: .white, highlight: .lightGray,height: 50)
    .setLayoutTitle(normal: .darkGray, highlight: .darkGray ,font: UIFont.systemFont(ofSize: 14))
    .setPadding(leading: 20, trailing: 20)
    .setDidSelectRowAt({ (idx, item, dropDown) in
        dropDown.hide()
    })
    .show(self, targetView: sender)

License

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