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

quickLookPreview(_:)

Presents a Quick Look preview of a single URL.

Declaration 宣言

func quickLookPreview(_ item: Binding<URL?>) -> some View

Parameters パラメータ

item

A Binding to a URL that should be previewed.

Discussion 議論

Quick Look will not appear until a non-nil item is set. When item is set back to nil, the preview is dismissed.

Upon dismissal, Quick Look automatically sets the item binding to nil.

See Also 参照

Quick Look Previews