<!--
{
  "availability" : [
    "iOS: 9.0.0 - 12.0.0",
    "iPadOS: 9.0.0 - 12.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIWebView/allowsLinkPreview",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIWebView(py)allowsLinkPreview"
  },
  "title" : "allowsLinkPreview"
}
-->

# allowsLinkPreview

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

```
var allowsLinkPreview: Bool { get set }
```

## Discussion

This property is available on devices that support 3D Touch. Default value is <doc://com.apple.documentation/documentation/Swift/false>.

If you set this value to <doc://com.apple.documentation/documentation/Swift/true> 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`](/documentation/UIKit/UIWebView) class to the <doc://com.apple.documentation/documentation/SafariServices/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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)