<!--
{
  "availability" : [
    "iOS: 9.0.0 - 13.0.0",
    "iPadOS: 9.0.0 - 13.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "tvOS: 9.0.0 - 13.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIViewControllerPreviewing/sourceView",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UIViewControllerPreviewing(py)sourceView"
  },
  "title" : "sourceView"
}
-->

# sourceView

A source view, in a previewing view controller’s view hierarchy, responds to a 3D Touch by the user.

```
var sourceView: UIView { get }
```

## Discussion

Set the value of this property when you register a view controller to participate in 3D Touch. Do this in the view controller’s [`registerForPreviewing(with:sourceView:)`](/documentation/UIKit/UIViewController/registerForPreviewing(with:sourceView:)) method.

When the user begins to press on the source view, the system blurs the surrounding area to let the user know that a preview (peek) is available. At this time, the system calls your [`previewingContext(_:viewControllerForLocation:)`](/documentation/UIKit/UIViewControllerPreviewingDelegate/previewingContext(_:viewControllerForLocation:)) method to let you prepare the presentation of a preview. If the user presses more deeply, the system presents the preview defined in your delegate method.

If the user presses deeper on the preview, the system navigates to the view you’ve specified in your [`previewingContext(_:commit:)`](/documentation/UIKit/UIViewControllerPreviewingDelegate/previewingContext(_:commit:)) method. The commit view then fills the bounds of the app’s window.

## See Also

[`sourceRect`](/documentation/UIKit/UIViewControllerPreviewing/sourceRect)

The rectangle, in the source view’s coordinate system, that responds to a 3D Touch by a user and remains visually sharp while surrounding content blurs.



---

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)