Skip to content

Commit

Permalink
Fix iOS 17 crash (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
omaralbeik committed Sep 23, 2023
1 parent f4eabe3 commit a183ee6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Drops.podspec
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")
]
```

Expand All @@ -134,15 +134,15 @@ $ 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

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
Expand Down
3 changes: 3 additions & 0 deletions Sources/WindowViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a183ee6

Please sign in to comment.