<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIPreviewParameters/init(textLineRects:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIPreviewParameters(im)initWithTextLineRects:"
  },
  "title" : "init(textLineRects:)"
}
-->

# init(textLineRects:)

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

```
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

A new preview parameters object for a view containing text.

## Discussion

---

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)