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

# init(_:)

Converts a Core Text alignment constant value to the matching constant value in UIKit.

## Declaration

```swift
init(_ ctTextAlignment: CTTextAlignment)
```

## Parameters

- `ctTextAlignment`: The Core Text alignment constant to convert.

## Return Value

Return Value The UIKit text alignment that corresponds to the value specified in ctTextAlignment.

## Discussion

Discussion Use this function when you need to map between the Core Text and UIKit constants for text alignment.

## See Also

### Text manipulations

- [init(_:)](coretext/cttextalignment/init(_:).md)
