Skip to content

Commit

Permalink
refactored
Browse files Browse the repository at this point in the history
  • Loading branch information
igniti0n committed Mar 8, 2022
1 parent 80499b0 commit c88a0b9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Example/Pods/Pods.xcodeproj/project.pbxproj

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Example/Themer.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,7 @@
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
};
name = Debug;
};
Expand Down Expand Up @@ -545,6 +546,7 @@
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
SWIFT_VERSION = 5.0;
VALIDATE_PRODUCT = YES;
};
name = Release;
Expand Down
2 changes: 1 addition & 1 deletion Source/Themer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ private extension Themer {
func setupSystemThemeChangeCallbacks() {
// Notified for when user exits, goes settings, changes theme mode, comes back
let notifications = NotificationCenter.default
notifications.addObserver(self, selector: #selector(onSystemThemeChanged), name: .UIApplicationDidBecomeActive, object: nil)
notifications.addObserver(self, selector: #selector(onSystemThemeChanged), name: UIApplication.didBecomeActiveNotification, object: nil)
// Notified when user changes theme mode during runtime
UIApplication.shared.connectedScenes.forEach { scene in
guard let scene = scene as? UIWindowScene else { return }
Expand Down

0 comments on commit c88a0b9

Please sign in to comment.