with12s(_:)
Static factory method that creates a custom day period format style using a style that represents midday and midnight.
Declaration
static func with12s(_ width: Date.FormatStyle.Symbol.DayPeriod.Width) -> Date.FormatStyle.Symbol.DayPeriodParameters
- width:
Specifies the width of the string result.
Return Value
A day period format style appropriate for the locale and specified width.