Skip to content

Commit a183ee6

Browse files
authored
Fix iOS 17 crash (#48)
1 parent f4eabe3 commit a183ee6

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

Drops.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'Drops'
3-
s.version = '1.6.0'
3+
s.version = '1.7.0'
44
s.summary = 'A µFramework for showing iOS 13 like system alerts'
55
s.description = <<-DESC
66
A µFramework for showing alerts like the one used when copying from pasteboard or connecting Apple pencil.

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ The [Swift Package Manager](https://swift.org/package-manager/) is a tool for ma
119119

120120
```swift
121121
dependencies: [
122-
.package(url: "https://github.com/omaralbeik/Drops.git", from: "1.6.0")
122+
.package(url: "https://github.com/omaralbeik/Drops.git", from: "1.7.0")
123123
]
124124
```
125125

@@ -134,15 +134,15 @@ $ swift build
134134
To integrate Drops into your Xcode project using [CocoaPods](https://cocoapods.org), specify it in your Podfile:
135135

136136
```rb
137-
pod 'Drops', :git => 'https://github.com/omaralbeik/Drops.git', :tag => '1.6.0'
137+
pod 'Drops', :git => 'https://github.com/omaralbeik/Drops.git', :tag => '1.7.0'
138138
```
139139

140140
### Carthage
141141

142142
To integrate Drops into your Xcode project using [Carthage](https://github.com/Carthage/Carthage), specify it in your Cartfile:
143143

144144
```
145-
github "omaralbeik/Drops" ~> 1.6.0
145+
github "omaralbeik/Drops" ~> 1.7.0
146146
```
147147

148148
### Manually

Sources/WindowViewController.swift

+3
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ internal final class WindowViewController: UIViewController {
4343
let app = UIApplication.shared
4444
let windowScene = app.activeWindowScene
4545
let topViewController = windowScene?.windows.first(where: \.isKeyWindow)?.rootViewController?.top
46+
if let controller = topViewController, controller === self {
47+
return .default
48+
}
4649
return topViewController?.preferredStatusBarStyle
4750
?? windowScene?.statusBarManager?.statusBarStyle
4851
?? .default

0 commit comments

Comments
 (0)