Skip to content

Commit 2806a84

Browse files
authored
Merge pull request shinydevelopment#78 from davidrothera/master
Change canImport to DEBUG check
2 parents c96f49c + 85c8d29 commit 2806a84

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

INSTALLATION.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ github "shinydevelopment/SimulatorStatusMagic"
2525

2626
5. Add code referencing `SimulatorStatusMagiciOS` inside `#if canImport ... #endif` blocks in your `AppDelegate`:
2727
```swift
28-
#if canImport(SimulatorStatusMagiciOS)
28+
#if DEBUG
2929
import SimulatorStatusMagiciOS
3030
#endif
3131

3232
@UIApplicationMain
3333
final class AppDelegate: UIResponder, UIApplicationDelegate {
3434
func application(_ application: UIApplication, didFinishLaunchingWithOptions options: [UIApplication.LaunchOptionsKey: Any]? ) -> Bool {
35-
#if canImport(SimulatorStatusMagiciOS)
35+
#if DEBUG
3636
SDStatusBarManager.sharedInstance()?.enableOverrides()
3737
#endif
3838
}

0 commit comments

Comments
 (0)