Instance Method

setTextColor(_:)

Sets the color of the date and time text.

Declaration

func setTextColor(_ color: UIColor?)

Parameters

color

The custom color to be applied to the time string. Specifying nil removes the custom color and returns the text to the color specified in the storyboard file. The default text color is white.

See Also

Configuring the Date and Time Display

func setTimeZone(TimeZone?)

Sets the time zone to use when displaying time information.

func setCalendar(Calendar?)

Sets the calendar to use when formatting date information.