<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIToolTipConfiguration/sourceRect-8zvo1",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "s:So22UIToolTipConfigurationC5UIKitE10sourceRectSo6CGRectVSgvp"
  },
  "title" : "sourceRect"
}
-->

# sourceRect

The region of the view or control where the pointer must hover to trigger the appearance of the tooltip.

```
@MainActor @preconcurrency var sourceRect: CGRect? { get }
```

## Discussion

To set [`sourceRect`](/documentation/UIKit/UIViewControllerPreviewing/sourceRect), create a tooltip configuration object using the [`init(toolTip:in:)`](/documentation/UIKit/UIToolTipConfiguration/init(toolTip:in:)) method.

---

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)