Skip to content

Commit

Permalink
Merge pull request #6 from Wilsonator5000/swift-4.2
Browse files Browse the repository at this point in the history
Update project to Swift 4.2
  • Loading branch information
LowKostKustomz authored Oct 21, 2018
2 parents 3f522b6 + 6212fac commit bdc2b46
Show file tree
Hide file tree
Showing 5 changed files with 99 additions and 72 deletions.
6 changes: 4 additions & 2 deletions Example/StatusAlert.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.lowkostkustomz.StatusAlertDemoAppObjectiveC;
PRODUCT_MODULE_NAME = "$(TARGET_NAME)";
PRODUCT_NAME = StatusAlert;
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
Expand Down Expand Up @@ -750,6 +751,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.lowkostkustomz.StatusAlertDemoAppObjectiveC;
PRODUCT_MODULE_NAME = "$(TARGET_NAME)";
PRODUCT_NAME = StatusAlert;
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
Expand Down Expand Up @@ -780,7 +782,7 @@
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_VERSION = 3.0;
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
Expand Down Expand Up @@ -811,7 +813,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.lowkostkustomz.StatusAlert;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
SWIFT_VERSION = 3.0;
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
Expand Down
3 changes: 3 additions & 0 deletions Example/StatusAlertDemoSwift/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
}
}

#if swift(>=4.2)
typealias UIApplicationLaunchOptionsKey = UIApplication.LaunchOptionsKey
#endif
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:4.0
// swift-tools-version:4.2
import PackageDescription

let package = Package(
Expand Down
2 changes: 1 addition & 1 deletion Sources/StatusAlert/Extensions/UIDevice+Blur.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ extension UIDevice {
}

private var reduceTransparencyEnabled: Bool {
return UIAccessibilityIsReduceTransparencyEnabled()
return UIAccessibility.isReduceTransparencyEnabled
}

private var deviceSupportsBlur: Bool {
Expand Down
Loading

0 comments on commit bdc2b46

Please sign in to comment.