File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ open class DropDown : UITextField{
2020
2121 @IBInspectable public var rowHeight : CGFloat = 30
2222 @IBInspectable public var rowBackgroundColor : UIColor = . white
23+ @IBInspectable public var itemsColor : UIColor = . gray
24+ @IBInspectable public var itemsTintColor : UIColor = . blue
2325 @IBInspectable public var selectedRowColor : UIColor = . cyan
2426 @IBInspectable public var hideOptionsWhenSelect = true
2527 @IBInspectable public var isSearchEnable : Bool = true {
@@ -397,6 +399,8 @@ extension DropDown: UITableViewDataSource {
397399 cell!. imageView!. image = UIImage ( named: imageArray [ indexPath. row] )
398400 }
399401 cell!. textLabel!. text = " \( dataArray [ indexPath. row] ) "
402+ cell!. textLabel!. textColor = itemsColor
403+ cell!. tintColor = itemsTintColor
400404 cell!. accessoryType = ( indexPath. row == selectedIndex) && checkMarkEnabled ? . checkmark : . none
401405 cell!. selectionStyle = . none
402406 cell? . textLabel? . font = self . font
You can’t perform that action at this time.
0 commit comments