Instance Method


Sets the color of the date and time text.


func setTextColor(_ color: UIColor?)



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.