SwiftUI templates
Design complication templates using SwiftUI views.
Overview
ClockKit provides SwiftUI versions of the other graphic templates. These templates use a View instance to draw some or all of the complication’s content. However, the following templates are particularly useful when drawing the complication with SwiftUI:
These templates use a single SwiftUI view to fill the entire complication, providing a blank canvas that you can use to draw the entire complication.
Topics
Corner templates
CLKComplicationTemplateGraphicCornerCircularViewCLKComplicationTemplateGraphicCornerGaugeViewCLKComplicationTemplateGraphicCornerTextView
Circular templates
CLKComplicationTemplateGraphicCircularViewCLKComplicationTemplateGraphicCircularOpenGaugeViewCLKComplicationTemplateGraphicCircularClosedGaugeViewCLKComplicationTemplateGraphicCircularStackViewText
Rectangular templates
CLKComplicationTemplateGraphicRectangularStandardBodyViewCLKComplicationTemplateGraphicRectangularTextGaugeViewCLKComplicationTemplateGraphicRectangularLargeViewCLKComplicationTemplateGraphicRectangularFullView