From 9ed5f04603ad1c7514dce0fb05f794d1c74c00bf Mon Sep 17 00:00:00 2001 From: robert jenkins Date: Sat, 27 Apr 2019 20:49:41 +0300 Subject: [PATCH] Swift 5.0 --- Source/TransitionButton.swift | 2 +- TransitionButton.xcodeproj/project.pbxproj | 19 ++++++++----------- .../xcschemes/TransitionButton.xcscheme | 2 +- .../iOS Example.xcodeproj/project.pbxproj | 6 ++++-- .../xcschemes/iOS Example.xcscheme | 2 +- 5 files changed, 15 insertions(+), 16 deletions(-) diff --git a/Source/TransitionButton.swift b/Source/TransitionButton.swift index 0e0a343..edb28a3 100755 --- a/Source/TransitionButton.swift +++ b/Source/TransitionButton.swift @@ -230,7 +230,7 @@ public enum StopAnimationStyle { public extension UIImage { - public convenience init?(color: UIColor, size: CGSize = CGSize(width: 1, height: 1)) { + convenience init?(color: UIColor, size: CGSize = CGSize(width: 1, height: 1)) { let rect = CGRect(origin: .zero, size: size) UIGraphicsBeginImageContextWithOptions(rect.size, false, 0.0) color.setFill() diff --git a/TransitionButton.xcodeproj/project.pbxproj b/TransitionButton.xcodeproj/project.pbxproj index dd03b41..f892ae8 100755 --- a/TransitionButton.xcodeproj/project.pbxproj +++ b/TransitionButton.xcodeproj/project.pbxproj @@ -167,22 +167,23 @@ TargetAttributes = { D93F1C971EAEDB6E009A7474 = { CreatedOnToolsVersion = 8.3.2; - LastSwiftMigration = 0900; + LastSwiftMigration = 1020; ProvisioningStyle = Automatic; }; D93F1CA01EAEDB6E009A7474 = { CreatedOnToolsVersion = 8.3.2; - LastSwiftMigration = 0900; + LastSwiftMigration = 1020; ProvisioningStyle = Automatic; }; }; }; buildConfigurationList = D93F1C921EAEDB6E009A7474 /* Build configuration list for PBXProject "TransitionButton" */; compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; + developmentRegion = en; hasScannedForEncodings = 0; knownRegions = ( en, + Base, ); mainGroup = D93F1C8E1EAEDB6E009A7474; productRefGroup = D93F1C991EAEDB6E009A7474 /* Products */; @@ -381,8 +382,7 @@ PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_SWIFT3_OBJC_INFERENCE = Default; - SWIFT_VERSION = 4.2; + SWIFT_VERSION = 5.0; }; name = Debug; }; @@ -403,8 +403,7 @@ PRODUCT_BUNDLE_IDENTIFIER = com.itechnodev.TransitionButton; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; - SWIFT_SWIFT3_OBJC_INFERENCE = Default; - SWIFT_VERSION = 4.2; + SWIFT_VERSION = 5.0; }; name = Release; }; @@ -417,8 +416,7 @@ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = com.itechnodev.TransitionButtonTests; PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_SWIFT3_OBJC_INFERENCE = Default; - SWIFT_VERSION = 4.2; + SWIFT_VERSION = 5.0; }; name = Debug; }; @@ -431,8 +429,7 @@ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = com.itechnodev.TransitionButtonTests; PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_SWIFT3_OBJC_INFERENCE = Default; - SWIFT_VERSION = 4.2; + SWIFT_VERSION = 5.0; }; name = Release; }; diff --git a/TransitionButton.xcodeproj/xcshareddata/xcschemes/TransitionButton.xcscheme b/TransitionButton.xcodeproj/xcshareddata/xcschemes/TransitionButton.xcscheme index 931465d..7d40257 100755 --- a/TransitionButton.xcodeproj/xcshareddata/xcschemes/TransitionButton.xcscheme +++ b/TransitionButton.xcodeproj/xcshareddata/xcschemes/TransitionButton.xcscheme @@ -1,6 +1,6 @@