Initializer

init(_:style:)

Creates an instance that displays localized dates and times using a specific style.

Declaration 宣言

init(_ date: Date, style: Text.DateStyle)

Parameters パラメータ

date

The target date to display.

style

The style used when displaying a date.

See Also 参照

Creating a Text View for a Date