UIViews
Link
Open a URL with the system.
A tappable view that hands destination to the system: web pages open in the browser, and URL schemes open the matching app. children is the label.
import { Label, Link } from "onescript/views"
<Link destination={new URL("https://developer.apple.com/documentation/swiftui")}>
<Label symbol="book">SwiftUI documentation</Label>
</Link>| Prop | Type | Description |
|---|---|---|
destination | URL | The URL to open. |
children | ViewChild | The label. |
Also accepts Modifiers. It is only available in App and Action view sessions; widgets reject it with an unsupported view type error.
How is this guide?
Last updated on