diff --git a/Drops.podspec b/Drops.podspec index 94a526d..2b9f3e6 100644 --- a/Drops.podspec +++ b/Drops.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'Drops' - s.version = '1.6.0' + s.version = '1.7.0' s.summary = 'A µFramework for showing iOS 13 like system alerts' s.description = <<-DESC A µFramework for showing alerts like the one used when copying from pasteboard or connecting Apple pencil. diff --git a/README.md b/README.md index 76b5733..974aa4f 100644 --- a/README.md +++ b/README.md @@ -119,7 +119,7 @@ The [Swift Package Manager](https://swift.org/package-manager/) is a tool for ma ```swift dependencies: [ - .package(url: "https://github.com/omaralbeik/Drops.git", from: "1.6.0") + .package(url: "https://github.com/omaralbeik/Drops.git", from: "1.7.0") ] ``` @@ -134,7 +134,7 @@ $ swift build To integrate Drops into your Xcode project using [CocoaPods](https://cocoapods.org), specify it in your Podfile: ```rb -pod 'Drops', :git => 'https://github.com/omaralbeik/Drops.git', :tag => '1.6.0' +pod 'Drops', :git => 'https://github.com/omaralbeik/Drops.git', :tag => '1.7.0' ``` ### Carthage @@ -142,7 +142,7 @@ pod 'Drops', :git => 'https://github.com/omaralbeik/Drops.git', :tag => '1.6.0' To integrate Drops into your Xcode project using [Carthage](https://github.com/Carthage/Carthage), specify it in your Cartfile: ``` -github "omaralbeik/Drops" ~> 1.6.0 +github "omaralbeik/Drops" ~> 1.7.0 ``` ### Manually diff --git a/Sources/WindowViewController.swift b/Sources/WindowViewController.swift index 9318491..a8adbe4 100644 --- a/Sources/WindowViewController.swift +++ b/Sources/WindowViewController.swift @@ -43,6 +43,9 @@ internal final class WindowViewController: UIViewController { let app = UIApplication.shared let windowScene = app.activeWindowScene let topViewController = windowScene?.windows.first(where: \.isKeyWindow)?.rootViewController?.top + if let controller = topViewController, controller === self { + return .default + } return topViewController?.preferredStatusBarStyle ?? windowScene?.statusBarManager?.statusBarStyle ?? .default