Instance Method インスタンスメソッド

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