SwiftUI code example
Example 1: swift
if swift == "the best language ever" {
print("yes")
} else {
print("no")
}
// the console prints "yes"
Example 2: swift
var swift = "the best language ever"
if swift == "the best language ever" {
print("yes")
} else {
print("no")
}
Example 3: Link swiftui
Link("View Our Terms of Service",
destination: URL(string: "https://www.example.com/TOS.html")!)