Contents

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