I have one phrase that will be the entirety of the complication. Sometimes it is short enough to occupy the header alone. However, sometimes it is too long and I need it to wrap onto the body lines. I can't for the life of me figure out how to get this behavior. For example:
let phrase1 = "Short phrase"
phrase1
is short enough to fit on the header line.
let phrase2 = "Very very very very very very long phrase"
For phrase2
, only "Very very ve..."
displays on the header line. I need the rest to be shown on the body lines.
Here is the code:
let headerTextProvider = CLKSimpleTextProvider(text: string) //string is either phrase1 or phrase2
let template = CLKComplicationTemplateModularLargeStandardBody()
template.headerTextProvider = headerTextProvider
let timelineEntry = CLKComplicationTimelineEntry(date: NSDate(), complicationTemplate: template)
handler(timelineEntry)