@@ -109,112 +109,112 @@ public class TextStyle {
109109}
110110
111111public extension TextStyle {
112- public var attachment : NSTextAttachment ? {
112+ var attachment : NSTextAttachment ? {
113113 get { return self . attributes [ TextAttribute . attachment. NSAttribute] as? NSTextAttachment }
114114 set { self . set ( value: newValue, for: TextAttribute . attachment) }
115115 }
116116
117- public var backgroundColor : UIColor ? {
117+ var backgroundColor : UIColor ? {
118118 get { return self . attributes [ TextAttribute . backgroundColor. NSAttribute] as? UIColor }
119119 set { self . set ( value: newValue, for: TextAttribute . backgroundColor) }
120120 }
121121
122- public var baselineOffset : NSNumber ? {
122+ var baselineOffset : NSNumber ? {
123123 get { return self . attributes [ TextAttribute . baselineOffset. NSAttribute] as? NSNumber }
124124 set { self . set ( value: newValue, for: TextAttribute . baselineOffset) }
125125 }
126126
127- public var expansion : NSNumber ? {
127+ var expansion : NSNumber ? {
128128 get { return self . attributes [ TextAttribute . expansion. NSAttribute] as? NSNumber }
129129 set { self . set ( value: newValue, for: TextAttribute . expansion) }
130130 }
131131
132- public var font : UIFont ? {
132+ var font : UIFont ? {
133133 get { return self . attributes [ TextAttribute . font. NSAttribute] as? UIFont }
134134 set { self . set ( value: newValue, for: TextAttribute . font) }
135135 }
136136
137- public var foregroundColor : UIColor ? {
137+ var foregroundColor : UIColor ? {
138138 get { return self . attributes [ TextAttribute . foregroundColor. NSAttribute] as? UIColor }
139139 set { self . set ( value: newValue, for: TextAttribute . foregroundColor) }
140140 }
141141
142- public var kern : NSNumber ? {
142+ var kern : NSNumber ? {
143143 get { return self . attributes [ TextAttribute . kern. NSAttribute] as? NSNumber }
144144 set { self . set ( value: newValue, for: TextAttribute . kern) }
145145 }
146146
147- public var ligature : NSNumber ? {
147+ var ligature : NSNumber ? {
148148 get { return self . attributes [ TextAttribute . ligature. NSAttribute] as? NSNumber }
149149 set { self . set ( value: newValue, for: TextAttribute . ligature) }
150150 }
151151
152- public var linkString : NSString ? {
152+ var linkString : NSString ? {
153153 get { return self . attributes [ TextAttribute . link. NSAttribute] as? NSString }
154154 set { self . set ( value: newValue, for: TextAttribute . link) }
155155 }
156156
157- public var linkURL : NSURL ? {
157+ var linkURL : NSURL ? {
158158 get { return self . attributes [ TextAttribute . link. NSAttribute] as? NSURL }
159159 set { self . set ( value: newValue, for: TextAttribute . link) }
160160 }
161161
162- public var obliqueness : NSNumber ? {
162+ var obliqueness : NSNumber ? {
163163 get { return self . attributes [ TextAttribute . obliqueness. NSAttribute] as? NSNumber }
164164 set { self . set ( value: newValue, for: TextAttribute . obliqueness) }
165165 }
166166
167- public var paragraphStyle : NSParagraphStyle ? {
167+ var paragraphStyle : NSParagraphStyle ? {
168168 get { return self . attributes [ TextAttribute . paragraphStyle. NSAttribute] as? NSParagraphStyle }
169169 set { self . set ( value: newValue, for: TextAttribute . paragraphStyle) }
170170 }
171171
172- public var shadow : NSShadow ? {
172+ var shadow : NSShadow ? {
173173 get { return self . attributes [ TextAttribute . shadow. NSAttribute] as? NSShadow }
174174 set { self . set ( value: newValue, for: TextAttribute . shadow) }
175175 }
176176
177- public var strikethroughColor : UIColor ? {
177+ var strikethroughColor : UIColor ? {
178178 get { return self . attributes [ TextAttribute . strikethroughColor. NSAttribute] as? UIColor }
179179 set { self . set ( value: newValue, for: TextAttribute . strikethroughColor) }
180180 }
181181
182- public var strikethroughStyle : NSNumber ? {
182+ var strikethroughStyle : NSNumber ? {
183183 get { return self . attributes [ TextAttribute . strikethroughStyle. NSAttribute] as? NSNumber }
184184 set { self . set ( value: newValue, for: TextAttribute . strikethroughStyle) }
185185 }
186186
187- public var strokeColor : UIColor ? {
187+ var strokeColor : UIColor ? {
188188 get { return self . attributes [ TextAttribute . strokeColor. NSAttribute] as? UIColor }
189189 set { self . set ( value: newValue, for: TextAttribute . strokeColor) }
190190 }
191191
192- public var strokeWidth : NSNumber ? {
192+ var strokeWidth : NSNumber ? {
193193 get { return self . attributes [ TextAttribute . strokeWidth. NSAttribute] as? NSNumber }
194194 set { self . set ( value: newValue, for: TextAttribute . strokeWidth) }
195195 }
196196
197- public var textEffect : NSString ? {
197+ var textEffect : NSString ? {
198198 get { return self . attributes [ TextAttribute . textEffect. NSAttribute] as? NSString }
199199 set { self . set ( value: newValue, for: TextAttribute . textEffect) }
200200 }
201201
202- public var underlineColor : UIColor ? {
202+ var underlineColor : UIColor ? {
203203 get { return self . attributes [ TextAttribute . underlineColor. NSAttribute] as? UIColor }
204204 set { self . set ( value: newValue, for: TextAttribute . underlineColor) }
205205 }
206206
207- public var underlineStyle : NSNumber ? {
207+ var underlineStyle : NSNumber ? {
208208 get { return self . attributes [ TextAttribute . underlineStyle. NSAttribute] as? NSNumber }
209209 set { self . set ( value: newValue, for: TextAttribute . underlineStyle) }
210210 }
211211
212- public var verticalGlyphForm : NSNumber ? {
212+ var verticalGlyphForm : NSNumber ? {
213213 get { return self . attributes [ TextAttribute . verticalGlyphForm. NSAttribute] as? NSNumber }
214214 set { self . set ( value: newValue, for: TextAttribute . verticalGlyphForm) }
215215 }
216216
217- public var writingDirection : [ NSNumber ] ? {
217+ var writingDirection : [ NSNumber ] ? {
218218 get { return self . attributes [ TextAttribute . writingDirection. NSAttribute] as? [ NSNumber ] }
219219 set { self . set ( value: newValue, for: TextAttribute . writingDirection) }
220220 }
0 commit comments