From 85c8d29a0d3adfa36bd51b91e47d8de6757c7fe7 Mon Sep 17 00:00:00 2001 From: David Rothera Date: Tue, 9 Apr 2019 08:22:35 +0100 Subject: [PATCH] Change canImport to DEBUG check --- INSTALLATION.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/INSTALLATION.md b/INSTALLATION.md index 4761113..3a52e86 100644 --- a/INSTALLATION.md +++ b/INSTALLATION.md @@ -25,14 +25,14 @@ github "shinydevelopment/SimulatorStatusMagic" 5. Add code referencing `SimulatorStatusMagiciOS` inside `#if canImport ... #endif` blocks in your `AppDelegate`: ```swift -#if canImport(SimulatorStatusMagiciOS) +#if DEBUG import SimulatorStatusMagiciOS #endif @UIApplicationMain final class AppDelegate: UIResponder, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions options: [UIApplication.LaunchOptionsKey: Any]? ) -> Bool { - #if canImport(SimulatorStatusMagiciOS) + #if DEBUG SDStatusBarManager.sharedInstance()?.enableOverrides() #endif }