---
title: "appendLiteral(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/localizedstringkey/stringinterpolation/appendliteral(_:)"
---

# appendLiteral(_:)

Appends a literal string.

## Declaration

```swift
mutating func appendLiteral(_ literal: String)
```

## Parameters

- `literal`: The literal string to append.

## Discussion

Discussion Don’t call this method directly; it’s used by the compiler when interpreting string interpolations.

## See Also

### Appending to an interpolation

- [appendInterpolation(_:)](swiftui/localizedstringkey/stringinterpolation/appendinterpolation(_:).md)
- [appendInterpolation(_:specifier:)](swiftui/localizedstringkey/stringinterpolation/appendinterpolation(_:specifier:).md)
- [appendInterpolation(_:format:)](swiftui/localizedstringkey/stringinterpolation/appendinterpolation(_:format:).md)
- [appendInterpolation(_:formatter:)](swiftui/localizedstringkey/stringinterpolation/appendinterpolation(_:formatter:).md)
- [appendInterpolation(_:style:)](swiftui/localizedstringkey/stringinterpolation/appendinterpolation(_:style:).md)
- [appendInterpolation(timerInterval:pauseTime:countsDown:showsHours:)](swiftui/localizedstringkey/stringinterpolation/appendinterpolation(timerinterval:pausetime:countsdown:showshours:).md)
