Instance Property


A Boolean value that determines whether pressing on a link displays a preview of the destination for the link.


@property(nonatomic) BOOL allowsLinkPreview;


This property is available on devices that support 3D Touch. Default value is NO.

If you set this value to YES for a web view, users (with devices that support 3D Touch) can preview link destinations, and can preview detected data such as addresses, by pressing on links. Such previews are known to users as peeks. If a user presses deeper, the preview navigates (or pops, in user terminology) to the destination. Because pop navigation switches the user from your app to Safari, it is opt-in, by way of this property, rather default behavior for this class.

If you want to support link preview but also want to keep users within your app, you can switch from using the UIWebView class to the SFSafariViewController class. If you are using a web view as an in-app browser, making this change is best practice. The Safari view controller class automatically supports link previews.

See Also

Setting Web Content Properties


A Boolean value determining whether the webpage scales to fit the view and the user can change the scale.


The scroll view associated with the web view.


A Boolean value indicating whether the web view suppresses content rendering until it is fully loaded into memory.


A Boolean value indicating whether web content can programmatically display the keyboard.


The types of data converted to clickable URLs in the web view’s content.


Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software