@@ -57,7 +57,7 @@ extension ICTokenField {
57
57
layer. cornerRadius = 5
58
58
layer. shouldRasterize = true
59
59
layer. rasterizationScale = UIScreen . main. scale
60
- backgroundColor = UIColor ( red: 0.8 , green: 0.32 , blue: 0.24 , alpha: 1 )
60
+ backgroundColor = UIColor ( red: 0.8 , green: 0.32 , blue: 0.24 , alpha: 1 )
61
61
62
62
textField. textColor = UIColor . white
63
63
textField. tintColor = UIColor . white
@@ -66,21 +66,21 @@ extension ICTokenField {
66
66
attributedPlaceholder = NSAttributedString (
67
67
string: String ( describing: type ( of: self ) ) ,
68
68
attributes: [
69
- NSForegroundColorAttributeName : UIColor . white. withAlphaComponent ( 0.5 ) ,
70
- NSFontAttributeName : UIFont . boldSystemFont ( ofSize: 14 )
69
+ . foregroundColor : UIColor . white. withAlphaComponent ( 0.5 ) ,
70
+ . font : UIFont . boldSystemFont ( ofSize: 14 )
71
71
]
72
72
)
73
73
74
74
normalTokenAttributes = [
75
- NSForegroundColorAttributeName : UIColor . white,
76
- NSBackgroundColorAttributeName : UIColor . white. withAlphaComponent ( 0.25 ) ,
77
- NSFontAttributeName : UIFont . boldSystemFont ( ofSize: 14 )
75
+ . foregroundColor : UIColor . white,
76
+ . backgroundColor : UIColor . white. withAlphaComponent ( 0.25 ) ,
77
+ . font : UIFont . boldSystemFont ( ofSize: 14 )
78
78
]
79
79
80
80
highlightedTokenAttributes = [
81
- NSForegroundColorAttributeName : UIColor ( red: 0.8 , green: 0.32 , blue: 0.24 , alpha: 1 ) ,
82
- NSBackgroundColorAttributeName : UIColor . white,
83
- NSFontAttributeName : UIFont . boldSystemFont ( ofSize: 14 )
81
+ . foregroundColor : UIColor ( red: 0.8 , green: 0.32 , blue: 0.24 , alpha: 1 ) ,
82
+ . backgroundColor : UIColor . white,
83
+ . font : UIFont . boldSystemFont ( ofSize: 14 )
84
84
]
85
85
}
86
86
0 commit comments