Skip to content

Commit f1fe77f

Browse files
committed
Update to Swift 4.2.
1 parent 2908ade commit f1fe77f

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

TweeTextField.xcodeproj/project.pbxproj

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@
381381
PRODUCT_BUNDLE_IDENTIFIER = com.com.tweetextfield;
382382
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
383383
SKIP_INSTALL = YES;
384-
SWIFT_VERSION = 4.0;
384+
SWIFT_VERSION = 4.2;
385385
TARGETED_DEVICE_FAMILY = "1,2";
386386
VERSIONING_SYSTEM = "apple-generic";
387387
VERSION_INFO_PREFIX = "";
@@ -407,7 +407,7 @@
407407
PRODUCT_BUNDLE_IDENTIFIER = com.com.tweetextfield;
408408
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
409409
SKIP_INSTALL = YES;
410-
SWIFT_VERSION = 4.0;
410+
SWIFT_VERSION = 4.2;
411411
TARGETED_DEVICE_FAMILY = "1,2";
412412
VERSIONING_SYSTEM = "apple-generic";
413413
VERSION_INFO_PREFIX = "";
@@ -470,6 +470,7 @@
470470
SDKROOT = iphoneos;
471471
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
472472
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
473+
SWIFT_VERSION = 4.2;
473474
};
474475
name = Debug;
475476
};
@@ -521,6 +522,7 @@
521522
MTL_ENABLE_DEBUG_INFO = NO;
522523
SDKROOT = iphoneos;
523524
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
525+
SWIFT_VERSION = 4.2;
524526
VALIDATE_PRODUCT = YES;
525527
};
526528
name = Release;
@@ -532,13 +534,13 @@
532534
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
533535
CODE_SIGN_IDENTITY = "iPhone Developer";
534536
CODE_SIGN_STYLE = Automatic;
535-
DEVELOPMENT_TEAM = "";
537+
DEVELOPMENT_TEAM = 4LZBFVML4B;
536538
INFOPLIST_FILE = "$(SRCROOT)/TweeTextField/Supporting Files/Info.plist";
537539
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
538-
PRODUCT_BUNDLE_IDENTIFIER = "com.com.tweetextfield-sample";
540+
PRODUCT_BUNDLE_IDENTIFIER = "com.com.tweetextfield1-sample";
539541
PRODUCT_NAME = "$(TARGET_NAME)";
540542
PROVISIONING_PROFILE_SPECIFIER = "";
541-
SWIFT_VERSION = 4.0;
543+
SWIFT_VERSION = 4.2;
542544
TARGETED_DEVICE_FAMILY = 1;
543545
};
544546
name = Debug;
@@ -550,13 +552,13 @@
550552
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
551553
CODE_SIGN_IDENTITY = "iPhone Developer";
552554
CODE_SIGN_STYLE = Automatic;
553-
DEVELOPMENT_TEAM = "";
555+
DEVELOPMENT_TEAM = 4LZBFVML4B;
554556
INFOPLIST_FILE = "$(SRCROOT)/TweeTextField/Supporting Files/Info.plist";
555557
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
556-
PRODUCT_BUNDLE_IDENTIFIER = "com.com.tweetextfield-sample";
558+
PRODUCT_BUNDLE_IDENTIFIER = "com.com.tweetextfield1-sample";
557559
PRODUCT_NAME = "$(TARGET_NAME)";
558560
PROVISIONING_PROFILE_SPECIFIER = "";
559-
SWIFT_VERSION = 4.0;
561+
SWIFT_VERSION = 4.2;
560562
TARGETED_DEVICE_FAMILY = 1;
561563
};
562564
name = Release;

TweeTextField/AnimatedTextField.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ class AnimatedTextField: TweeAttributedTextField {
1111
NotificationCenter.default.addObserver(
1212
self,
1313
selector: #selector(startEditing),
14-
name: .UITextFieldTextDidBeginEditing,
14+
name: UITextField.textDidBeginEditingNotification,
1515
object: self
1616
)
1717

1818
NotificationCenter.default.addObserver(
1919
self,
2020
selector: #selector(endEditingText),
21-
name: .UITextFieldTextDidEndEditing,
21+
name: UITextField.textDidEndEditingNotification,
2222
object: self
2323
)
2424
}

TweeTextField/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
99

1010
var window: UIWindow?
1111

12-
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
12+
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
1313

1414
return true
1515
}

0 commit comments

Comments
 (0)