<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/LocalizedStringKey/StringInterpolation/appendInterpolation(_:specifier:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI18LocalizedStringKeyV0D13InterpolationV06appendF0_9specifieryx_SStAA18_FormatSpecifiableRzlF"
  },
  "title" : "appendInterpolation(_:specifier:)"
}
-->

# appendInterpolation(_:specifier:)

Appends a type, convertible to a string with a format specifier,
to a string interpolation.

```
mutating func appendInterpolation<T>(_ value: T, specifier: String) where T : _FormatSpecifiable
```

## Parameters

`value`

The value to append.

`specifier`

A format specifier to convert `subject` to a string
representation, like `%f` for a
<doc://com.apple.documentation/documentation/Swift/Double>, or
`%x` to create a hexidecimal representation of a
<doc://com.apple.documentation/documentation/Swift/UInt32>. For a
list of available specifier strings, see
[String Format Specifers](https://developer.apple.com/library/archive/documentation/CoreFoundation/Conceptual/CFStrings/formatSpecifiers.html#//apple_ref/doc/uid/TP40004265).

## Discussion

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

---

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)