Simple library to show dropdown with search option
PBDropDown is written in Swift 4.2.
let dropdown = PBDropdown(frame: self.dropdownView.frame, sourceArray: self.arrData, direction: .Up)
let dropdown = PBDropdown()
dropdown.dropDownDelegate = self
dropdown.show(vc : self, anchorView: sender, sourceArray: ["one","two"], direction: .Up, isSearch: true)
func didSelectDropDown(_ index:Int,_ data:Any)