---
title: "init(unicodeScalarLiteral:)"
framework: swift
role: symbol
role_heading: Initializer
path: "swift/substring/init(unicodescalarliteral:)"
---

# init(unicodeScalarLiteral:)

Creates an instance initialized to the given value.

## Declaration

```swift
init(unicodeScalarLiteral value: String)
```

## Parameters

- `value`: The value of the new instance.
