- Manually add files to your XCode Project
- Install using CocoaPods
JHDropdown is now available on CocoaPods. Simply add the following to your project Podfile and install
platform :ios, '8.0'
use_frameworks!
pod 'JHDropdown'
Call Dropdown.show(_:) when you want to show the notification
Dropdown.show("Set a message for the dropdown here", state: .Success, duration: 2.0, action: nil)
Customize the dropdown by using the .Custom DropdownState
let yourImage = UIImage(named: "yourimage")
let color = UIColor.anyColor()
Dropdown.show("Set a message for the dropdown here", state: .Custom(yourColor, yourImage), duration: 2.0, action: nil)
Run code after the animation for the dropdown is complete
Dropdown.show("Set a message for the dropdown here", state: .Error, duration: 2.0) {
// this code will run once animation is complete
}
- Add 3D animations to JHDropdown
- Add Carthage Installation support
Justin Hall: @ohthatsjhall
JHDropdown is released under the MIT license. See LICENSE for details.