DropDown() pod to set seperator color and background color iOS swift
Problem:
I'm using dropdown pod file for my app for dropdown show.I want to add selection background color,Background color, seperator color and it will show seperator for x value after some bounds.So want to show seperator from x = 0
Solution:
let dropDown = DropDown()
dropDown.anchorView = btn
dropDown.selectionBackgroundColor = .gray
dropDown.direction = .any
dropDown.backgroundColor = .white
dropDown.separatorColor = .gray
dropDown.customCellConfiguration = { (index: Index, item: String, cell: DropDownCell) -> Void in
cell.separatorInset = UIEdgeInsets.zero
}
Comments
Post a Comment