File tree 3 files changed +7
-4
lines changed
3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
1
Pod ::Spec . new do |s |
2
2
s . name = 'Drops'
3
- s . version = '1.6 .0'
3
+ s . version = '1.7 .0'
4
4
s . summary = 'A µFramework for showing iOS 13 like system alerts'
5
5
s . description = <<-DESC
6
6
A µFramework for showing alerts like the one used when copying from pasteboard or connecting Apple pencil.
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ The [Swift Package Manager](https://swift.org/package-manager/) is a tool for ma
119
119
120
120
``` swift
121
121
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" )
123
123
]
124
124
```
125
125
@@ -134,15 +134,15 @@ $ swift build
134
134
To integrate Drops into your Xcode project using [ CocoaPods] ( https://cocoapods.org ) , specify it in your Podfile:
135
135
136
136
``` 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'
138
138
```
139
139
140
140
### Carthage
141
141
142
142
To integrate Drops into your Xcode project using [ Carthage] ( https://github.com/Carthage/Carthage ) , specify it in your Cartfile:
143
143
144
144
```
145
- github "omaralbeik/Drops" ~> 1.6 .0
145
+ github "omaralbeik/Drops" ~> 1.7 .0
146
146
```
147
147
148
148
### Manually
Original file line number Diff line number Diff line change @@ -43,6 +43,9 @@ internal final class WindowViewController: UIViewController {
43
43
let app = UIApplication . shared
44
44
let windowScene = app. activeWindowScene
45
45
let topViewController = windowScene? . windows. first ( where: \. isKeyWindow) ? . rootViewController? . top
46
+ if let controller = topViewController, controller === self {
47
+ return . default
48
+ }
46
49
return topViewController? . preferredStatusBarStyle
47
50
?? windowScene? . statusBarManager? . statusBarStyle
48
51
?? . default
You can’t perform that action at this time.
0 commit comments