File tree 1 file changed +4
-0
lines changed
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{
20
20
21
21
@IBInspectable public var rowHeight : CGFloat = 30
22
22
@IBInspectable public var rowBackgroundColor : UIColor = . white
23
+ @IBInspectable public var itemsColor : UIColor = . gray
24
+ @IBInspectable public var itemsTintColor : UIColor = . blue
23
25
@IBInspectable public var selectedRowColor : UIColor = . cyan
24
26
@IBInspectable public var hideOptionsWhenSelect = true
25
27
@IBInspectable public var isSearchEnable : Bool = true {
@@ -397,6 +399,8 @@ extension DropDown: UITableViewDataSource {
397
399
cell!. imageView!. image = UIImage ( named: imageArray [ indexPath. row] )
398
400
}
399
401
cell!. textLabel!. text = " \( dataArray [ indexPath. row] ) "
402
+ cell!. textLabel!. textColor = itemsColor
403
+ cell!. tintColor = itemsTintColor
400
404
cell!. accessoryType = ( indexPath. row == selectedIndex) && checkMarkEnabled ? . checkmark : . none
401
405
cell!. selectionStyle = . none
402
406
cell? . textLabel? . font = self . font
You can’t perform that action at this time.
0 commit comments