To run the example project, clone the repo, and run pod install from the Example directory first.
class ViewController: UIViewController, DropdownMenuMixin { // Adding DropdownMenuMixin conformance
override func viewDidLoad() {
super.viewDidLoad()
self.title = "Smart"
self.setupTitleDropdownMenu(["Smart", "Latest", "Neareast", "Most Popular"])//call setupTitleDropdownMenu to create a dropdown menu, the first parameter is the menu items list
}
}DropdownMenu is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'DropdownMenu', :git => 'https://github.com/heartfly/DropdownMenu'Qiu Xinghao, qxh@mail.com
DropdownMenu is available under the MIT license. See the LICENSE file for more info.
