Skip to content

Commit ad55b4f

Browse files
committed
support to swift 4
1 parent def41b3 commit ad55b4f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

PasswordTextField.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,7 @@
10051005
PRODUCT_NAME = "$(TARGET_NAME)";
10061006
SKIP_INSTALL = YES;
10071007
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
1008-
SWIFT_VERSION = 3.0;
1008+
SWIFT_VERSION = 4.0;
10091009
};
10101010
name = Debug;
10111011
};
@@ -1025,7 +1025,7 @@
10251025
PRODUCT_BUNDLE_IDENTIFIER = com.greenpixels.PasswordTextField;
10261026
PRODUCT_NAME = "$(TARGET_NAME)";
10271027
SKIP_INSTALL = YES;
1028-
SWIFT_VERSION = 3.0;
1028+
SWIFT_VERSION = 4.0;
10291029
};
10301030
name = Release;
10311031
};

PasswordTextField/SecureTextToggleButton.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ open class SecureTextToggleButton: UIButton {
1818
fileprivate let Height:CGFloat = 20.0
1919

2020
/// Sets the value for the secure or note secure toggle and
21-
dynamic open var isSecure:Bool = true{
21+
@objc dynamic open var isSecure:Bool = true{
2222

2323
didSet{
2424

@@ -135,7 +135,7 @@ open class SecureTextToggleButton: UIButton {
135135
/**
136136
Toggle the icon
137137
*/
138-
open func buttonTouch()
138+
@objc open func buttonTouch()
139139
{
140140
self.isSecure = !self.isSecure
141141
}

0 commit comments

Comments
 (0)