---
title: "preferredFrame(for:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uitextselectionhandleview/preferredframe(for:)"
---

# preferredFrame(for:)

Provides a preferred frame given @c rect based on the current appearance configuration.

## Declaration

```swift
func preferredFrame(for rect: CGRect) -> CGRect
```
