Skip to content

Commit abc60f2

Browse files
authored
Merge pull request #86 from iBinh/patch-1
Add rowTextColor property
2 parents ea12dae + 3a192fa commit abc60f2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Classes/iOSDropDown.swift

+2
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ open class DropDown : UITextField{
6060
fileprivate var backgroundView = UIView()
6161
fileprivate var keyboardHeight:CGFloat = 0
6262

63+
public var rowTextColor: UIColor = .black
6364
public var optionArray = [String]() {
6465
didSet{
6566
self.dataArray = self.optionArray
@@ -401,6 +402,7 @@ extension DropDown: UITableViewDataSource {
401402
cell!.selectionStyle = .none
402403
cell?.textLabel?.font = self.font
403404
cell?.textLabel?.textAlignment = self.textAlignment
405+
cell?.textLabel?.textColor = rowTextColor
404406
return cell!
405407
}
406408
}

0 commit comments

Comments
 (0)