Contents

init(destination:label:)

Creates a control, consisting of a URL and a label, used to navigate to the given URL.

Declaration

@MainActor @preconcurrency init(destination: URL, @ViewBuilder label: () -> Label)

Parameters

  • destination:

    The URL for the link.

  • label:

    A view that describes the destination of URL.

See Also

Creating a link