---
title: sourceRect
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uitooltipconfiguration/sourcerect-8zvo1
---

# sourceRect

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

## Declaration

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

## Discussion

Discussion To set sourceRect, create a tooltip configuration object using the init(toolTip:in:) method.

## See Also

### Accessing the configuration settings

- [toolTip](uikit/uitooltipconfiguration/tooltip.md)
