Instance Method インスタンスメソッド

widgetURL(_:)

Sets the URL to open in the containing app when the user clicks the widget.

Declaration 宣言

func widgetURL(_ url: URL?) -> some View

Return Value 戻り値

A view that opens the specified URL when the user clicks the widget.

Parameters パラメータ

url

The URL to open in the containing app.

Overview 概要

Widgets support one widgetURL modifier in their view hierarchy. If multiple views have widgetURL modifiers, the behavior is undefined.

See Also 参照

URLs