8000 GitHub - ngchthanh/DropDownStack: DropdownStack is a stack of buttons. Simple, It show short menu such as gender, language, ...etc
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ngchthanh/DropDownStack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DropDownStack

DropdownStack is a stack of buttons. Simple, It show short menu such as gender, language, ...etc

Video Walkthrough

Installation

Coacoapods

To install with CocoaPods, copy and paste this in your Podfile file:

pod 'DropDownStack'
Manual

You can always do it the old-fashioned way - just drag the source file into your projects and you are good to go.

Usage

let items = [
            DropDownView<Int>.Item(title: "English", model: 0),
            DropDownView.Item(title: "Vietnamese", model: 1),
            DropDownView.Item(title: "Chinese", model: 2),
            DropDownView.Item(title: "Japanese", model: 3),
        ]
let config = DropDownConfiguration(itemSize: .dynamic, checkIcon: UIImage(named: "icon-check"))
let dropDownView = DropDownView(items: items, configuration: config)
dropDownView.didSelect = { item in
  print("did select \(item)")
}

About

DropdownStack is a stack of buttons. Simple, It show short menu such as gender, language, ...etc

Resources

License

Stars

Watchers

Forks

Packages

No packages published
0