Full width Seperator line
mc-lctoan opened this issue · comments
I able to add full width line with below code:
memberDropDown.customCellConfiguration = { (index: Index, item: String, cell: DropDownCell) -> Void in
let dividerLine = UIView(frame: CGRect(x: 0, y: cell.frame.height - 1, width: self.view.frame.width - 20, height: 0.6))
dividerLine.backgroundColor = UIColor().darkBlueColor
cell.addSubview(dividerLine)
}
I able to add full width line with below code:
memberDropDown.customCellConfiguration = { (index: Index, item: String, cell: DropDownCell) -> Void in let dividerLine = UIView(frame: CGRect(x: 0, y: cell.frame.height - 1, width: self.view.frame.width - 20, height: 0.6)) dividerLine.backgroundColor = UIColor().darkBlueColor cell.addSubview(dividerLine) }
It's a good idea to fine-tune it with customCellConfiguration, but there's a very very good solution, so I'll do a PR.
If you write the code above, an issue will occur where two Separators
are visible when you press DropDown twice.