Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions KSTokenView/KSTokenField.swift
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ open class KSTokenField: UITextField {
_descriptionText = tokenView!.descriptionText
placeHolderColor = tokenView!.placeholderColor
promptTextColor = tokenView!.promptColor
textColor = tokenView!.textColor
_setPromptText(tokenView!.promptText)

if (_setupCompleted) {
Expand Down
7 changes: 7 additions & 0 deletions KSTokenView/KSTokenView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,13 @@ open class KSTokenView: UIView {
_updateTokenField()
}
}

/// default is UIColor.blackColor()
@objc open var textColor: UIColor = UIColor.black {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better using UIColor.label for auto-switch between dark mode and light.

didSet {
_updateTokenField()
}
}

/// default is .Rounded, creates rounded corner
@objc open var style: KSTokenViewStyle = .rounded {
Expand Down