UIApplication.shared.open(url, options: [ : ], completionHandler: nil)
@Environment(\.openURL) var openURL
...
ZStack {
Color.blue
Text("App Store")
.fontWeight(.medium)
.foregroundColor(.white)
.onTapGesture {
openURL.callAsFunction(url) { accepted in }
}
}
...
Link(destination: url, label: {
ZStack {
Color.blue
Text("App Store")
.fontWeight(.medium)
.foregroundColor(.white)
}
})