Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix iOS 17 crash #48

Merged
merged 1 commit into from
Sep 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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