Skip to content

Commit 6d5ac11

Browse files
authored
Update iOSDropDown.swift
Add rowTextColor
1 parent ea12dae commit 6d5ac11

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Classes/iOSDropDown.swift

Lines changed: 2 additions & 0 deletions
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)