---
title: "init(frame:)"
framework: appkit
role: symbol
role_heading: Initializer
path: "appkit/nstextview/init(frame:)"
---

# init(frame:)

Initializes a text view.

## Declaration

```swift
init(frame frameRect: NSRect)
```

## Parameters

- `frameRect`: The frame rectangle of the text view.

## Return Value

Return Value An initialized text view.

## Discussion

Discussion This method creates the entire collection of objects associated with a text view—its text container, layout manager, and text storage—and invokes init(frame:textContainer:). This method creates the text web in such a manner that the text view is the principal owner of the objects in the web.

## See Also

### Creating a text view

- [init(frame:textContainer:)](appkit/nstextview/init(frame:textcontainer:).md)
- [init(usingTextLayoutManager:)](appkit/nstextview/init(usingtextlayoutmanager:).md)
- [init(coder:)](appkit/nstextview/init(coder:).md)
