I want to remove text from my graphic rectangular complication, or set it to empty string. By default it is the app name. I tried to set display name to " " within watchKit plist file, but that did not seem to change it.
How do I remove text from my graphic rectangular WatchOS5 complication?
I see that there's some way to get (assign?) a CLKTextProvider as described here: https://developer.apple.com/documentation/clockkit/clktextprovider However, it seems to involve adding a localizable strings file and I don't want to mess with this if there's an easier way to get image only for the CLKComplicationTemplateGraphicRectangularLargeImage
func getLocalizableSampleTemplate(for complication: CLKComplication, withHandler handler: @escaping (CLKComplicationTemplate?) -> Void) {
// This method will be called once per supported complication, and the results will be cached
if complication.family == .graphicRectangular {
let template = GraphicTemplate()
template.textProvider = CLKSimpleTextProvider.init(text: "")
handler(template)
}else {
handler(nil)
}
}
class GraphicTemplate: CLKComplicationTemplateGraphicRectangularLargeImage {
}