@@ -117,8 +117,8 @@ open class PermissionButton: UIButton {
117117 - parameter state: The state that uses the specified title.
118118 */
119119 open func setTitle( _ title: String ? , forStatus status: PermissionStatus , andState state: UIControlState = UIControlState ( ) ) {
120- guard [ . highlighted] . contains ( state) else { return }
121-
120+ // guard [.highlighted].contains(state) else { return }
121+
122122 if titles [ state] == nil {
123123 titles [ state] = [ : ]
124124 }
@@ -133,8 +133,8 @@ open class PermissionButton: UIButton {
133133 - parameter state: The state that uses the specifed titles.
134134 */
135135 open func setTitles( _ titles: [ PermissionStatus : String ? ] , forState state: UIControlState = UIControlState ( ) ) {
136- guard [ . highlighted] . contains ( state) else { return }
137-
136+ // guard [.highlighted].contains(state) else { return }
137+
138138 if self . titles [ state] == nil {
139139 self . titles [ state] = [ : ]
140140 }
@@ -177,8 +177,8 @@ open class PermissionButton: UIButton {
177177 - parameter state: The state that uses the specified title.
178178 */
179179 open func setAttributedTitle( _ title: NSAttributedString ? , forStatus status: PermissionStatus , andState state: UIControlState = UIControlState ( ) ) {
180- guard [ . highlighted] . contains ( state) else { return }
181-
180+ // guard [.highlighted].contains(state) else { return }
181+
182182 if attributedTitles [ state] == nil {
183183 attributedTitles [ state] = [ : ]
184184 }
@@ -193,8 +193,8 @@ open class PermissionButton: UIButton {
193193 - parameter state: The state that uses the specified titles.
194194 */
195195 open func setAttributedTitles( _ titles: [ PermissionStatus : NSAttributedString ? ] , forState state: UIControlState = UIControlState ( ) ) {
196- guard [ . highlighted] . contains ( state) else { return }
197-
196+ // guard [.highlighted].contains(state) else { return }
197+
198198 if attributedTitles [ state] == nil {
199199 attributedTitles [ state] = [ : ]
200200 }
@@ -237,8 +237,8 @@ open class PermissionButton: UIButton {
237237 - parameter state: The state that uses the specified color.
238238 */
239239 open func setTitleColor( _ color: UIColor ? , forStatus status: PermissionStatus , andState state: UIControlState = UIControlState ( ) ) {
240- guard [ . highlighted] . contains ( state) else { return }
241-
240+ // guard [.highlighted].contains(state) else { return }
241+
242242 if titleColors [ state] == nil {
243243 titleColors [ state] = [ : ]
244244 }
@@ -253,8 +253,8 @@ open class PermissionButton: UIButton {
253253 - parameter state: The state that uses the specified colors.
254254 */
255255 open func setTitleColors( _ colors: [ PermissionStatus : UIColor ? ] , forState state: UIControlState = UIControlState ( ) ) {
256- guard [ . highlighted] . contains ( state) else { return }
257-
256+ // guard [.highlighted].contains(state) else { return }
257+
258258 if titleColors [ state] == nil {
259259 titleColors [ state] = [ : ]
260260 }
@@ -297,8 +297,8 @@ open class PermissionButton: UIButton {
297297 - parameter state: The state that uses the specified color.
298298 */
299299 open func setTitleShadowColor( _ color: UIColor ? , forStatus status: PermissionStatus , andState state: UIControlState = UIControlState ( ) ) {
300- guard [ . highlighted] . contains ( state) else { return }
301-
300+ // guard [.highlighted].contains(state) else { return }
301+
302302 if titleShadowColors [ state] == nil {
303303 titleShadowColors [ state] = [ : ]
304304 }
@@ -313,8 +313,8 @@ open class PermissionButton: UIButton {
313313 - parameter state: The state that uses the specified colors.
314314 */
315315 open func setTitleShadowColors( _ colors: [ PermissionStatus : UIColor ? ] , forState state: UIControlState = UIControlState ( ) ) {
316- guard [ . highlighted] . contains ( state) else { return }
317-
316+ // guard [.highlighted].contains(state) else { return }
317+
318318 if titleShadowColors [ state] == nil {
319319 titleShadowColors [ state] = [ : ]
320320 }
@@ -357,8 +357,8 @@ open class PermissionButton: UIButton {
357357 - parameter state: The state that uses the specified image.
358358 */
359359 open func setImage( _ image: UIImage ? , forStatus status: PermissionStatus , andState state: UIControlState = UIControlState ( ) ) {
360- guard [ . highlighted] . contains ( state) else { return }
361-
360+ // guard [.highlighted].contains(state) else { return }
361+
362362 if images [ state] == nil {
363363 images [ state] = [ : ]
364364 }
@@ -373,8 +373,8 @@ open class PermissionButton: UIButton {
373373 - parameter state: The state that uses the specified images.
374374 */
375375 open func setImages( _ images: [ PermissionStatus : UIImage ] , forState state: UIControlState = UIControlState ( ) ) {
376- guard [ . highlighted] . contains ( state) else { return }
377-
376+ // guard [.highlighted].contains(state) else { return }
377+
378378 if self . images [ state] == nil {
379379 self . images [ state] = [ : ]
380380 }
@@ -417,8 +417,8 @@ open class PermissionButton: UIButton {
417417 - parameter state: The state that uses the specified image.
418418 */
419419 open func setBackgroundImage( _ image: UIImage ? , forStatus status: PermissionStatus , andState state: UIControlState = UIControlState ( ) ) {
420- guard [ . highlighted] . contains ( state) else { return }
421-
420+ // guard [.highlighted].contains(state) else { return }
421+
422422 if backgroundImages [ state] == nil {
423423 backgroundImages [ state] = [ : ]
424424 }
@@ -433,8 +433,8 @@ open class PermissionButton: UIButton {
433433 - parameter state: The state that uses the specified images.
434434 */
435435 open func setBackgroundImages( _ images: [ PermissionStatus : UIImage ] , forState state: UIControlState = UIControlState ( ) ) {
436- guard [ . highlighted] . contains ( state) else { return }
437-
436+ // guard [.highlighted].contains(state) else { return }
437+
438438 if backgroundImages [ state] == nil {
439439 backgroundImages [ state] = [ : ]
440440 }
0 commit comments