---
title: "init(literalCapacity:interpolationCount:)"
framework: swift
role: symbol
role_heading: Initializer
path: "swift/defaultstringinterpolation/init(literalcapacity:interpolationcount:)"
---

# init(literalCapacity:interpolationCount:)

Creates a string interpolation with storage pre-sized for a literal with the indicated attributes.

## Declaration

```swift
init(literalCapacity: Int, interpolationCount: Int)
```

## Discussion

Discussion You don’t need to call this initializer directly. It’s used by the compiler when interpreting string interpolations.
