One Logo Pool Ball
_WebKit_SwiftUI · IOS API REFERENCE

WebView.LinkPreviewBehavior

struct · iOS 26.0+ · SDK 27.1

struct LinkPreviewBehavior

A type specifying the behavior for the presentation of link previews when pressing a link.

Members (3)

get · iOS 26.0+

enabled

TypeScript
static get enabled(): Promise<WebView_LinkPreviewBehavior>
Swift declaration
static let enabled: WebView.LinkPreviewBehavior

Link previews are enabled. The web view allows pressing a link to display a preview of the destination for the link.

get · iOS 26.0+

disabled

TypeScript
static get disabled(): Promise<WebView_LinkPreviewBehavior>
Swift declaration
static let disabled: WebView.LinkPreviewBehavior

Link previews are disabled. The web view prevents pressing a link from displaying a preview of the destination for the link.

get · iOS 26.0+

automatic

TypeScript
static get automatic(): Promise<WebView_LinkPreviewBehavior>
Swift declaration
static let automatic: WebView.LinkPreviewBehavior

The automatic behavior. The web view automatically chooses whether pressing a link displays a preview of the destination for the link. By default, web views use the ``WebView/LinkPreviewBehavior/enabled`` behavior.

Skipped declarations

No declarations were skipped in this snapshot.

All _WebKit_SwiftUI types →