Contents

appendInterpolation(_:style:)

Appends a formatted date to a string interpolation.

Declaration

mutating func appendInterpolation(_ date: Date, style: Text.DateStyle)

Parameters

  • date:

    The date to append.

  • style:

    A predefined style to format the date with.

Discussion

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

See Also

Appending to an interpolation