Skip to content

Commit

Permalink
Add support for Swift 5
Browse files Browse the repository at this point in the history
  • Loading branch information
k-lpmg committed Apr 15, 2019
1 parent b90f76f commit daa4da3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Example/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {

var window: UIWindow?

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
return true
}

Expand Down
6 changes: 3 additions & 3 deletions Example/Sources/TaggingViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ class TaggingViewController: UIViewController {
tagging.cornerRadius = 20
tagging.textInset = UIEdgeInsets(top: 16, left: 16, bottom: 16, right: 16)
tagging.backgroundColor = UIColor.lightGray.withAlphaComponent(0.1)
tagging.defaultAttributes = [NSAttributedStringKey.foregroundColor: UIColor.black, NSAttributedStringKey.font: UIFont.boldSystemFont(ofSize: 20)]
tagging.symbolAttributes = [NSAttributedStringKey.foregroundColor: UIColor.gray]
tagging.taggedAttributes = [NSAttributedStringKey.foregroundColor: UIColor.gray, NSAttributedStringKey.underlineStyle: NSNumber(value: 1)]
tagging.defaultAttributes = [NSAttributedString.Key.foregroundColor: UIColor.black, NSAttributedString.Key.font: UIFont.boldSystemFont(ofSize: 20)]
tagging.symbolAttributes = [NSAttributedString.Key.foregroundColor: UIColor.gray]
tagging.taggedAttributes = [NSAttributedString.Key.foregroundColor: UIColor.gray, NSAttributedString.Key.underlineStyle: NSNumber(value: 1)]
tagging.dataSource = self

tagging.symbol = "#"
Expand Down
14 changes: 7 additions & 7 deletions Tagging.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@
65B08AFD20FD6DE800D19DE8 /* Tests */ = {
isa = PBXGroup;
children = (
65B08AFE20FD6DE800D19DE8 /* TaggingExampleUITests.swift */,
65B08AFF20FD6DE800D19DE8 /* Info.plist */,
65B08AFE20FD6DE800D19DE8 /* TaggingExampleUITests.swift */,
);
path = Tests;
sourceTree = "<group>";
Expand Down Expand Up @@ -394,7 +394,7 @@
PRODUCT_BUNDLE_IDENTIFIER = "k-lpmg.TaggingExampleUITests";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
TEST_TARGET_NAME = TaggingExample;
};
Expand All @@ -416,7 +416,7 @@
PRODUCT_BUNDLE_IDENTIFIER = "k-lpmg.TaggingExampleUITests";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
TEST_TARGET_NAME = TaggingExample;
};
Expand Down Expand Up @@ -565,7 +565,7 @@
PROVISIONING_PROFILE_SPECIFIER = "";
SKIP_INSTALL = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
Expand All @@ -592,7 +592,7 @@
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
PROVISIONING_PROFILE_SPECIFIER = "";
SKIP_INSTALL = YES;
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
Expand All @@ -616,7 +616,7 @@
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
Expand All @@ -639,7 +639,7 @@
PRODUCT_BUNDLE_IDENTIFIER = "k-lpmg.TaggingExample";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
Expand Down

0 comments on commit daa4da3

Please sign in to comment.