【发布时间】:2021-04-21 12:08:46
【问题描述】:
我在 Widget View 中有一个用 SwiftUI 编写的链接,如下所示:
Link("Visit Apple",
destination: URL(string: "https://www.apple.com")!)
.font(.caption)
.foregroundColor(.red)
但是现在,我需要在 Safari 中打开它。是否可以不打开主机应用程序?
【问题讨论】: