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

# init(stringLiteral:)

Creates an attributed string from the specified string literal, with no attributes.

## Declaration

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

## Parameters

- `value`: The string literal that provides the attributed string’s initial content.
