OneScript

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>
PropTypeDescription
destinationURLThe URL to open.
childrenViewChildThe 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