diff --git a/VerticalSlider.xcodeproj/project.pbxproj b/VerticalSlider.xcodeproj/project.pbxproj index 8aba2c7..655f872 100644 --- a/VerticalSlider.xcodeproj/project.pbxproj +++ b/VerticalSlider.xcodeproj/project.pbxproj @@ -98,6 +98,7 @@ TargetAttributes = { C877292E1F21625800A411BA = { CreatedOnToolsVersion = 8.3.3; + LastSwiftMigration = 1030; ProvisioningStyle = Automatic; }; }; @@ -107,6 +108,7 @@ developmentRegion = English; hasScannedForEncodings = 0; knownRegions = ( + English, en, Base, ); @@ -269,7 +271,7 @@ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = com.swiftnotions.ios.VerticalSlider; PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 3.0; + SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = 1; }; name = Debug; @@ -282,7 +284,7 @@ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = com.swiftnotions.ios.VerticalSlider; PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 3.0; + SWIFT_VERSION = 5.0; 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 }