func onOpenURL (perform: (URL) -> ()) -> some View
Registers a handler to invoke when the view receives a url for the scene or window the view is in.
あるハンドラを登録して、ビューがURLを、その中にビューが入っているシーンまたはウインドウに対して受け取る時に発動します。
Availability 有効性
Technology
A view that opens the specified URL when the user clicks the widget.
url
The URL to open in the containing app.
Widgets support one widget
modifier in their view hierarchy. If multiple views have widget
modifiers, the behavior is undefined.
func onOpenURL (perform: (URL) -> ()) -> some View