CPCCalendarUnitSymbol
public protocol CPCCalendarUnitSymbol
Calendar unit that has a localizable symbol in addition to an integer value.
-
Get a localized name of a calendar unit.
Declaration
Swift
func symbol(style: Style, standalone: Bool) -> StringParameters
styleStyle of returned value.
standalonetrueindicates the intention of using the returned value in standalone context, e.g. as unit’s label.Return Value
Localized symbol representing this calendar unit with requested style and context.
-
StyleExtension methodSee also
CPCCalendarUnitSymbolStyleDeclaration
Swift
public typealias Style = CPCCalendarUnitSymbolStyle -
symbol()Extension methodGet a localized name of a calendar unit.
Declaration
Swift
public func symbol() -> StringReturn Value
Localized symbol with default style.
-
symbol(standalone:)Extension methodGet a localized name of a calendar unit.
Declaration
Swift
func symbol(standalone: Bool) -> StringParameters
standalonetrueindicates the intention of using the returned value in standalone context, e.g. as unit’s label.Return Value
Localized symbol with default style for requested context.
-
symbol(style:)Extension methodGet a localized name of a calendar unit.
Declaration
Swift
func symbol(style: Style) -> StringParameters
styleStyle of returned value.
Return Value
Localized symbol for requested style.
View on GitHub
Install in Dash
CPCCalendarUnitSymbol Protocol Reference