Skip to content

An API for DropDown with streams similar Rx, Implement options as simple functions, Dropdown View With Swift

License

Notifications You must be signed in to change notification settings

bugkingK/DropDown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

An API for DropDown with streams similar Rx, Implement options as simple functions, Dropdown View With Swift

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published