Open SherifKamalSalem opened 4 years ago
You can access what tableConatinerView from subviews and before showing the dropdown set the border it works fine dropDown.subviews[1].borderWidth = 1 dropDown.subviews[1].borderColor = .black
For the exact requirements, I have integrated the dropdown border functionality
Integration:
pod 'DropDown', :git => 'https://github.com/snappymob/DropDown.git', :commit =>
'57027168178b77a9463814fbeb6cda173f301854'
Uses:
dropDown.borderColor = UIColor.gray.cgColor
dropDown.borderWidth = 1.0
Ref: https://github.com/snappymob/DropDown/commit/57027168178b77a9463814fbeb6cda173f301854
Hello, I'm using a UIButton for my DropDown and here is how I set the border width and color :
@IBOutlet weak var myButton: UIButton!
`
Hope it can help ! ^^