---
title: "init(stringInterpolation:)"
framework: swift
role: symbol
role_heading: Initializer
path: "swift/expressiblebystringinterpolation/init(stringinterpolation:)"
---

# init(stringInterpolation:)

Creates an instance from a string interpolation.

## Declaration

```swift
init(stringInterpolation: Self.StringInterpolation)
```

## Parameters

- `stringInterpolation`: An instance of StringInterpolation which has had each segment of the string literal appended to it.

## Discussion

Discussion Most StringInterpolation types will store information about the literals and interpolations appended to them in one or more properties. init(stringInterpolation:) should use these properties to initialize the instance.
