---
title: "setTextColor(_:)"
framework: watchkit
role: symbol
role_heading: Instance Method
path: "watchkit/wkinterfacedate/settextcolor(_:)"
---

# setTextColor(_:)

Sets the color of the date and time text.

## Declaration

```swift
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

### Related Documentation

- [App Programming Guide for watchOS](apple-archive/documentation/General/Conceptual/WatchKitProgrammingGuide.md)

### Configuring the Date and Time Display

- [setTimeZone(_:)](watchkit/wkinterfacedate/settimezone(_:).md)
- [setCalendar(_:)](watchkit/wkinterfacedate/setcalendar(_:).md)
