From 42195c9fa2a6f1d728ac5e0ffa09a4e30dd0e2a0 Mon Sep 17 00:00:00 2001 From: Lars Sonchocky-Helldorf Date: Tue, 23 Jul 2019 22:55:14 +0200 Subject: [PATCH 1/2] migrated to Swift 4.2 --- VerticalSlider.xcodeproj/project.pbxproj | 7 +++++-- VerticalSlider/AppDelegate.swift | 2 +- VerticalSlider/VerticalSlider.swift | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/VerticalSlider.xcodeproj/project.pbxproj b/VerticalSlider.xcodeproj/project.pbxproj index 8aba2c7..796886c 100644 --- a/VerticalSlider.xcodeproj/project.pbxproj +++ b/VerticalSlider.xcodeproj/project.pbxproj @@ -98,6 +98,7 @@ TargetAttributes = { C877292E1F21625800A411BA = { CreatedOnToolsVersion = 8.3.3; + LastSwiftMigration = 1010; ProvisioningStyle = Automatic; }; }; @@ -269,7 +270,8 @@ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = com.swiftnotions.ios.VerticalSlider; PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 3.0; + SWIFT_SWIFT3_OBJC_INFERENCE = On; + SWIFT_VERSION = 4.2; TARGETED_DEVICE_FAMILY = 1; }; name = Debug; @@ -282,7 +284,8 @@ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = com.swiftnotions.ios.VerticalSlider; PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 3.0; + SWIFT_SWIFT3_OBJC_INFERENCE = On; + SWIFT_VERSION = 4.2; TARGETED_DEVICE_FAMILY = 1; }; name = Release; diff --git a/VerticalSlider/AppDelegate.swift b/VerticalSlider/AppDelegate.swift index 32ec590..4597f98 100644 --- a/VerticalSlider/AppDelegate.swift +++ b/VerticalSlider/AppDelegate.swift @@ -14,7 +14,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 { // Override point for customization after application launch. return true } diff --git a/VerticalSlider/VerticalSlider.swift b/VerticalSlider/VerticalSlider.swift index a66ab2b..8ae779b 100644 --- a/VerticalSlider/VerticalSlider.swift +++ b/VerticalSlider/VerticalSlider.swift @@ -129,7 +129,7 @@ class VerticalSlider: UIControl { } } - self.sendActions(for: UIControlEvents.valueChanged) + self.sendActions(for: UIControl.Event.valueChanged) return true } From df3c805ff6c795bf741cd3c84ff6f5cc77a5e223 Mon Sep 17 00:00:00 2001 From: Lars Sonchocky-Helldorf Date: Tue, 23 Jul 2019 23:12:06 +0200 Subject: [PATCH 2/2] migrated to Swift 5.0 --- VerticalSlider.xcodeproj/project.pbxproj | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/VerticalSlider.xcodeproj/project.pbxproj b/VerticalSlider.xcodeproj/project.pbxproj index 796886c..655f872 100644 --- a/VerticalSlider.xcodeproj/project.pbxproj +++ b/VerticalSlider.xcodeproj/project.pbxproj @@ -98,7 +98,7 @@ TargetAttributes = { C877292E1F21625800A411BA = { CreatedOnToolsVersion = 8.3.3; - LastSwiftMigration = 1010; + LastSwiftMigration = 1030; ProvisioningStyle = Automatic; }; }; @@ -108,6 +108,7 @@ developmentRegion = English; hasScannedForEncodings = 0; knownRegions = ( + English, en, Base, ); @@ -270,8 +271,7 @@ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = com.swiftnotions.ios.VerticalSlider; PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_SWIFT3_OBJC_INFERENCE = On; - SWIFT_VERSION = 4.2; + SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = 1; }; name = Debug; @@ -284,8 +284,7 @@ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = com.swiftnotions.ios.VerticalSlider; PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_SWIFT3_OBJC_INFERENCE = On; - SWIFT_VERSION = 4.2; + SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = 1; }; name = Release;