---
title: "init(textLineRects:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/uipreviewparameters/init(textlinerects:)"
---

# init(textLineRects:)

Creates a preview parameters object with information about the text you want to preview.

## Declaration

```swift
convenience init(textLineRects: [NSValue])
```

## Parameters

- `textLineRects`: An array of text line rectangles in the coordinate system of the view being animated. UIKit clips the previewed content using the specified rectangles. Wrap each doc://com.apple.documentation/documentation/CoreFoundation/CGRect in an doc://com.apple.documentation/documentation/Foundation/NSValue object. If you specify an empty array, UIKit shows the entire view.

## Return Value

Return Value A new preview parameters object for a view containing text.

## See Also

### Creating preview parameters

- [init()](uikit/uipreviewparameters/init().md)
