fix: await UIApplication.shared.open() for iOS 17+ async API
This commit is contained in:
parent
bc0bd60e09
commit
1375f2d2e6
@ -160,7 +160,7 @@ public final class BricksEngine: ObservableObject {
|
|||||||
#if os(macOS)
|
#if os(macOS)
|
||||||
NSWorkspace.shared.open(URL(string: url)!)
|
NSWorkspace.shared.open(URL(string: url)!)
|
||||||
#elseif os(iOS)
|
#elseif os(iOS)
|
||||||
UIApplication.shared.open(URL(string: url)!)
|
await UIApplication.shared.open(URL(string: url)!)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
case .bricks:
|
case .bricks:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user