---
title: "init(textCell:)"
framework: appkit
role: symbol
role_heading: Initializer
path: "appkit/nstextfieldcell/init(textcell:)"
---

# init(textCell:)

Initializes a text field cell that displays the specified string.

## Declaration

```swift
init(textCell string: String)
```

## Parameters

- `string`: The string that the text field cell displays.

## Return Value

Return Value A text field cell that displays a string.

## See Also

### Creating a Text Field Cell

- [init(coder:)](appkit/nstextfieldcell/init(coder:).md)
