Contents

appendInterpolation(_:specifier:)

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

Declaration

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 Double, or %x to create a hexidecimal representation of a Uint32. For a list of available specifier strings, see TP40004265.

Discussion

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

See Also

Appending to an interpolation