---
title: "init(_:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/nsunderlinestyle/init(_:)"
---

# init(_:)

Creates a NSUnderlineStyle from Text.LineStyle.

## Declaration

```swift
init(_ lineStyle: Text.LineStyle)
```

## Parameters

- `lineStyle`: A value of Text.LineStyle to wrap with doc://com.apple.uikit/documentation/UIKit/NSUnderlineStyle.

## Return Value

Return Value A new NSUnderlineStyle.

## See Also

### Initializers

- [init(rawValue:)](uikit/nsunderlinestyle/init(rawvalue:).md)
