---
title: "init(stringLiteral:)"
framework: swift
role: symbol
role_heading: Initializer
path: "swift/expressiblebystringliteral/init(stringliteral:)"
---

# init(stringLiteral:)

Creates an instance initialized to the given string value.

## Declaration

```swift
init(stringLiteral value: Self.StringLiteralType)
```

## Parameters

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