---
title: "init(labelWithString:)"
framework: appkit
role: symbol
role_heading: Initializer
path: "appkit/nstextfield/init(labelwithstring:)"
---

# init(labelWithString:)

Initializes a text field for use as a static label that uses the system default font, doesn’t wrap, and doesn’t have selectable text.

## Declaration

```swift
convenience init(labelWithString stringValue: String)
```

## Parameters

- `stringValue`: A string to use as the content of the label.

## Return Value

Return Value A text field that displays the specified string as a static label.

## See Also

### Creating Text Fields

- [init(labelWithAttributedString:)](appkit/nstextfield/init(labelwithattributedstring:).md)
- [init(string:)](appkit/nstextfield/init(string:).md)
- [init(wrappingLabelWithString:)](appkit/nstextfield/init(wrappinglabelwithstring:).md)
