A control for navigating to a URL.
import SwiftUI
struct ContentView: View {
var body: some View {
Link("View Our Terms of Service",
destination: URL(string: "https://www.example.com/TOS.html")!)
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}