fix: await UIApplication.shared.open() for iOS 17+ async API

This commit is contained in:
yumoqing 2026-07-01 08:31:36 +08:00
parent bc0bd60e09
commit 1375f2d2e6

View File

@ -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: