---
title: Adding text to a complication
framework: clockkit
role: article
role_heading: Article
path: clockkit/adding-text-to-a-complication
---

# Adding text to a complication

Use text in SwiftUI complications.

## Overview

Overview When creating ClockKit templates with SwiftUI views, Text views adapt their appearance based on the template’s complication family. The system automatically sets the font and size to match other templates in the same family. Match the Expected Font Size Use the default font size as a guide for the type of information your complication displays. For example, the CLKComplicationTemplateGraphicExtraLargeCircularView template provides a large canvas for drawing, but it’s intended to present large, easy-to-read content instead of a lot of small, detailed data. Use Text Formatters When displaying dates and times, use Text.DateStyle to create localized strings. Text.DateStyle also defines formatters such as relative, offset, and timer. ClockKit automatically updates information in these formatters, and you can use these formatters when instantiating a Text view. Text(myEvent.startDate, style: .timer) Or use them inline in an interpolated string. Text("\(myEvent.name) starts in \(myEvent.startDate, style: .timer)")

## See Also

### Articles

- [Creating complications for your watchOS app](clockkit/creating-complications-for-your-watchos-app.md)
- [Declaring complications for your app](clockkit/declaring-complications-for-your-app.md)
- [Creating a timeline entry](clockkit/creating-a-timeline-entry.md)
- [Loading future timeline events](clockkit/loading-future-timeline-events.md)
- [Keeping your complications up to date](clockkit/keeping-your-complications-up-to-date.md)
- [Building complications with SwiftUI](clockkit/building-complications-with-swiftui.md)
- [Displaying progress views and gauges](clockkit/displaying-progress-views-and-gauges.md)
