<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/ExpressibleByStringInterpolation/init(stringInterpolation:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:s32ExpressibleByStringInterpolationP06stringD0x0cD0Qz_tcfc"
  },
  "title" : "init(stringInterpolation:)"
}
-->

# init(stringInterpolation:)

Creates an instance from a string interpolation.

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

## Parameters

`stringInterpolation`

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

## 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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)