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.
Creates an instance that displays localized dates and times using a specific style.
init(_ date: Date, style: Text.DateStyle)The target date to display.
The style used when displaying a date.