Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 484 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 484 Bytes

Link

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()
    }
}

Links that help