<!--
{
  "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/sourceRect",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UIViewControllerPreviewing(py)sourceRect"
  },
  "title" : "sourceRect"
}
-->

# 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.

```
var sourceRect: CGRect { get set }
```

## Discussion

Use this property if you want to specify a preview indication area that is different than the bounds of the view in the [`sourceView`](/documentation/UIKit/UIViewControllerPreviewing/sourceView) property. Set this property’s value in your object’s [`previewingContext(_:viewControllerForLocation:)`](/documentation/UIKit/UIViewControllerPreviewingDelegate/previewingContext(_:viewControllerForLocation:)) method.

The default value of this property corresponds to the bounds of the view in the [`sourceView`](/documentation/UIKit/UIViewControllerPreviewing/sourceView) property.

For example, if your source view is a table view, you can set the `sourceRect` property to the frame of the row under the user’s touch. The row then remains visually sharp when a user presses it, while surrounding content blurs, thereby indicating to the user that it is the row being touched that has a preview available.

You can change the value of this property at runtime.

## See Also

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

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



---

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)