File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ open class SearchTextField: UITextField {
3131 /// Set your custom visual theme, or just choose between pre-defined SearchTextFieldTheme.lightTheme() and SearchTextFieldTheme.darkTheme() themes
3232 open var theme = SearchTextFieldTheme . lightTheme ( ) {
3333 didSet {
34+ highlightAttributes = [ . font: UIFont . boldSystemFont ( ofSize: theme. font. pointSize) ]
3435 tableView? . reloadData ( )
3536
3637 if let placeholderColor = theme. placeholderColor {
@@ -78,6 +79,7 @@ open class SearchTextField: UITextField {
7879 open var userStoppedTypingHandler : ( ( ) -> Void ) ?
7980
8081 /// Set your custom set of attributes in order to highlight the string found in each item
82+ /// Set it after setting the theme
8183 open var highlightAttributes : [ NSAttributedStringKey : AnyObject ] = [ . font: UIFont . boldSystemFont ( ofSize: 10 ) ]
8284
8385 /// Start showing the default loading indicator, useful for searches that take some time.
You can’t perform that action at this time.
0 commit comments