diff --git a/CHANGELOG.md b/CHANGELOG.md index 223286a..c0aa344 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a ## [Unreleased] +## [1.1.12] - 2018-21-09 +### Changed +- Updates for Swift 4.2 + ## [1.1.11] - 2018-04-06 ### Changed - Carthage Support diff --git a/Example/GradientLoadingBar.xcodeproj/project.pbxproj b/Example/GradientLoadingBar.xcodeproj/project.pbxproj index 314f0ce..858babf 100644 --- a/Example/GradientLoadingBar.xcodeproj/project.pbxproj +++ b/Example/GradientLoadingBar.xcodeproj/project.pbxproj @@ -651,7 +651,7 @@ PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_SWIFT3_OBJC_INFERENCE = Default; - SWIFT_VERSION = 4.0; + SWIFT_VERSION = 4.2; }; name = Debug; }; @@ -666,7 +666,7 @@ PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_SWIFT3_OBJC_INFERENCE = Default; - SWIFT_VERSION = 4.0; + SWIFT_VERSION = 4.2; }; name = Release; }; diff --git a/Example/GradientLoadingBar/AppDelegate.swift b/Example/GradientLoadingBar/AppDelegate.swift index 166822c..6f2497e 100644 --- a/Example/GradientLoadingBar/AppDelegate.swift +++ b/Example/GradientLoadingBar/AppDelegate.swift @@ -13,7 +13,7 @@ import UIKit class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? - func application(_: UIApplication, didFinishLaunchingWithOptions _: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { + func application(_: UIApplication, didFinishLaunchingWithOptions _: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. // Customize shared instance of `GradientLoadingBar` diff --git a/Example/Podfile.lock b/Example/Podfile.lock index 9808bf1..9c205da 100644 --- a/Example/Podfile.lock +++ b/Example/Podfile.lock @@ -1,6 +1,6 @@ PODS: - - GradientLoadingBar (1.1.11) - - SwiftFormat/CLI (0.35.2) + - GradientLoadingBar (1.1.12) + - SwiftFormat/CLI (0.35.5) - SwiftLint (0.27.0) DEPENDENCIES: @@ -13,10 +13,10 @@ EXTERNAL SOURCES: :path: ../ SPEC CHECKSUMS: - GradientLoadingBar: d06c05c4732c6a1404d47f33342de8fb3062d5e2 - SwiftFormat: d26c78821785f8c1d029323658c93a977cdf31bf + GradientLoadingBar: fd8439373eb6de8b153e9065fceb62e1d19d32c3 + SwiftFormat: 4b7b2a64127283611b14d858321758fd75673c7c SwiftLint: 3207c1faa2240bf8973b191820a116113cd11073 PODFILE CHECKSUM: 55891446b31c0884d45a4c65f1b52d307ff274bc -COCOAPODS: 1.3.1 +COCOAPODS: 1.4.0 diff --git a/GradientLoadingBar.podspec b/GradientLoadingBar.podspec index 6c4147e..a17897e 100644 --- a/GradientLoadingBar.podspec +++ b/GradientLoadingBar.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.name = 'GradientLoadingBar' - s.version = '1.1.11' + s.version = '1.1.12' s.summary = 'A customizable animated gradient loading bar.' # This description is used to generate tags and improve search results. diff --git a/GradientLoadingBar/Classes/ViewModel/GradientLoadingBarViewModel.swift b/GradientLoadingBar/Classes/ViewModel/GradientLoadingBarViewModel.swift index 729017a..b8d1406 100644 --- a/GradientLoadingBar/Classes/ViewModel/GradientLoadingBarViewModel.swift +++ b/GradientLoadingBar/Classes/ViewModel/GradientLoadingBarViewModel.swift @@ -67,7 +67,7 @@ class GradientLoadingBarViewModel { guard let keyWindow = sharedApplication.keyWindow else { // If the controller initializer is called in `appDelegate` key window will not be available, // so we setup an observer to inform the delegate when it's ready. - keyWindowIsAvailableObserver = notificationCenter.observeOnce(forName: .UIWindowDidBecomeKey) { _ in + keyWindowIsAvailableObserver = notificationCenter.observeOnce(forName: UIWindow.didBecomeKeyNotification) { _ in self.setupObserverForKeyWindow() } diff --git a/GradientLoadingBar/Classes/Views/GradientView.swift b/GradientLoadingBar/Classes/Views/GradientView.swift index 7e56b95..20f8d94 100644 --- a/GradientLoadingBar/Classes/Views/GradientView.swift +++ b/GradientLoadingBar/Classes/Views/GradientView.swift @@ -93,7 +93,7 @@ public final class GradientView: UIView { animation.duration = duration - animation.fillMode = kCAFillModeForwards + animation.fillMode = CAMediaTimingFillMode.forwards animation.isRemovedOnCompletion = false gradientLayer.add(animation, forKey: animationKey)