Skip to content

Commit

Permalink
commented out a wtf check
Browse files Browse the repository at this point in the history
and  filled an issue with developer
delba#88
  • Loading branch information
ysoftware committed Jan 15, 2017
1 parent fbb4a23 commit adfae1d
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions Source/PermissionButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ open class PermissionButton: UIButton {
- parameter state: The state that uses the specified title.
*/
open func setTitle(_ title: String?, forStatus status: PermissionStatus, andState state: UIControlState = UIControlState()) {
guard [.highlighted].contains(state) else { return }
// guard [.highlighted].contains(state) else { return }

if titles[state] == nil {
titles[state] = [:]
}
Expand All @@ -133,8 +133,8 @@ open class PermissionButton: UIButton {
- parameter state: The state that uses the specifed titles.
*/
open func setTitles(_ titles: [PermissionStatus: String?], forState state: UIControlState = UIControlState()) {
guard [.highlighted].contains(state) else { return }
// guard [.highlighted].contains(state) else { return }

if self.titles[state] == nil {
self.titles[state] = [:]
}
Expand Down Expand Up @@ -177,8 +177,8 @@ open class PermissionButton: UIButton {
- parameter state: The state that uses the specified title.
*/
open func setAttributedTitle(_ title: NSAttributedString?, forStatus status: PermissionStatus, andState state: UIControlState = UIControlState()) {
guard [.highlighted].contains(state) else { return }
// guard [.highlighted].contains(state) else { return }

if attributedTitles[state] == nil {
attributedTitles[state] = [:]
}
Expand All @@ -193,8 +193,8 @@ open class PermissionButton: UIButton {
- parameter state: The state that uses the specified titles.
*/
open func setAttributedTitles(_ titles: [PermissionStatus: NSAttributedString?], forState state: UIControlState = UIControlState()) {
guard [.highlighted].contains(state) else { return }
// guard [.highlighted].contains(state) else { return }

if attributedTitles[state] == nil {
attributedTitles[state] = [:]
}
Expand Down Expand Up @@ -237,8 +237,8 @@ open class PermissionButton: UIButton {
- parameter state: The state that uses the specified color.
*/
open func setTitleColor(_ color: UIColor?, forStatus status: PermissionStatus, andState state: UIControlState = UIControlState()) {
guard [.highlighted].contains(state) else { return }
// guard [.highlighted].contains(state) else { return }

if titleColors[state] == nil {
titleColors[state] = [:]
}
Expand All @@ -253,8 +253,8 @@ open class PermissionButton: UIButton {
- parameter state: The state that uses the specified colors.
*/
open func setTitleColors(_ colors: [PermissionStatus: UIColor?], forState state: UIControlState = UIControlState()) {
guard [.highlighted].contains(state) else { return }
// guard [.highlighted].contains(state) else { return }

if titleColors[state] == nil {
titleColors[state] = [:]
}
Expand Down Expand Up @@ -297,8 +297,8 @@ open class PermissionButton: UIButton {
- parameter state: The state that uses the specified color.
*/
open func setTitleShadowColor(_ color: UIColor?, forStatus status: PermissionStatus, andState state: UIControlState = UIControlState()) {
guard [.highlighted].contains(state) else { return }
// guard [.highlighted].contains(state) else { return }

if titleShadowColors[state] == nil {
titleShadowColors[state] = [:]
}
Expand All @@ -313,8 +313,8 @@ open class PermissionButton: UIButton {
- parameter state: The state that uses the specified colors.
*/
open func setTitleShadowColors(_ colors: [PermissionStatus: UIColor?], forState state: UIControlState = UIControlState()) {
guard [.highlighted].contains(state) else { return }
// guard [.highlighted].contains(state) else { return }

if titleShadowColors[state] == nil {
titleShadowColors[state] = [:]
}
Expand Down Expand Up @@ -357,8 +357,8 @@ open class PermissionButton: UIButton {
- parameter state: The state that uses the specified image.
*/
open func setImage(_ image: UIImage?, forStatus status: PermissionStatus, andState state: UIControlState = UIControlState()) {
guard [.highlighted].contains(state) else { return }
// guard [.highlighted].contains(state) else { return }

if images[state] == nil {
images[state] = [:]
}
Expand All @@ -373,8 +373,8 @@ open class PermissionButton: UIButton {
- parameter state: The state that uses the specified images.
*/
open func setImages(_ images: [PermissionStatus: UIImage], forState state: UIControlState = UIControlState()) {
guard [.highlighted].contains(state) else { return }
// guard [.highlighted].contains(state) else { return }

if self.images[state] == nil {
self.images[state] = [:]
}
Expand Down Expand Up @@ -417,8 +417,8 @@ open class PermissionButton: UIButton {
- parameter state: The state that uses the specified image.
*/
open func setBackgroundImage(_ image: UIImage?, forStatus status: PermissionStatus, andState state: UIControlState = UIControlState()) {
guard [.highlighted].contains(state) else { return }
// guard [.highlighted].contains(state) else { return }

if backgroundImages[state] == nil {
backgroundImages[state] = [:]
}
Expand All @@ -433,8 +433,8 @@ open class PermissionButton: UIButton {
- parameter state: The state that uses the specified images.
*/
open func setBackgroundImages(_ images: [PermissionStatus: UIImage], forState state: UIControlState = UIControlState()) {
guard [.highlighted].contains(state) else { return }
// guard [.highlighted].contains(state) else { return }

if backgroundImages[state] == nil {
backgroundImages[state] = [:]
}
Expand Down

0 comments on commit adfae1d

Please sign in to comment.