<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UISheetPresentationController/sourceView",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UISheetPresentationController(py)sourceView"
  },
  "title" : "sourceView"
}
-->

# sourceView

The view that the sheet centers itself over.

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

## Discussion

The default value is `nil`, which means the system centers edge-attached sheets on the edge they attach to, and centers floating sheets vertically and horizontally in the window.

To customize the sheet’s position, set a view within the view hierarchy of the presenting view controller as the [`sourceView`](/documentation/UIKit/UISheetPresentationController/sourceView) of the sheet. The sheet attempts to visually center itself over this view. The system only positions the sheet within system-defined margins.

---

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)