Contents

locale(_:)

Modifies the date attributed style to use the specified locale.

Declaration

func locale(_ locale: Locale) -> Date.AttributedStyle

Parameters

  • locale:

    The locale to use when formatting a date.

Return Value

A date attributed style with the provided locale.