A cross-import overlay that bridges ClockKit and SwiftUI on watchOS, letting you build watch face complications from SwiftUI views. You construct graphic complication templates that host SwiftUI content across the standard families, including circular, corner, extra-large circular, and rectangular layouts through types such as CLKComplicationTemplateGraphicCircularView, CLKComplicationTemplateGraphicCornerGaugeView, and CLKComplicationTemplateGraphicRectangularFullView. The overlay also provides closed and open gauge views for displaying progress, and ComplicationRenderingMode to adapt content to the watch face's rendering context.
Circular Complications 4
Templates that host SwiftUI content in the circular complication families on the watch face.
- ClCLKComplicationTemplateGraphicCircularViewA complication template that hosts a SwiftUI view in the graphic circular family.
- ClCLKComplicationTemplateGraphicCircularStackViewTextA complication template that stacks a SwiftUI view above a line of text in the graphic circular family.
- ClCLKComplicationTemplateGraphicExtraLargeCircularViewA complication template that hosts a SwiftUI view in the graphic extra-large circular family.
- ClCLKComplicationTemplateGraphicExtraLargeCircularStackViewTextA complication template that stacks a SwiftUI view above a line of text in the graphic extra-large circular family.
Circular Gauges 4
Templates that pair circular SwiftUI content with closed or open gauges to display progress.
- ClCLKComplicationTemplateGraphicCircularClosedGaugeViewA complication template that surrounds a SwiftUI view with a closed gauge in the graphic circular family.
- ClCLKComplicationTemplateGraphicCircularOpenGaugeViewA complication template that surrounds a SwiftUI view with an open gauge in the graphic circular family.
- ClCLKComplicationTemplateGraphicExtraLargeCircularClosedGaugeViewA complication template that surrounds a SwiftUI view with a closed gauge in the graphic extra-large circular family.
- ClCLKComplicationTemplateGraphicExtraLargeCircularOpenGaugeViewA complication template that surrounds a SwiftUI view with an open gauge in the graphic extra-large circular family.
Corner Complications 3
Templates that host SwiftUI content in the corner complication family of the watch face.
- ClCLKComplicationTemplateGraphicCornerCircularViewA complication template that hosts a SwiftUI view in the corner of the watch face.
- ClCLKComplicationTemplateGraphicCornerGaugeViewA complication template that pairs a SwiftUI view with a gauge in the corner of the watch face.
- ClCLKComplicationTemplateGraphicCornerTextViewA complication template that pairs a SwiftUI view with text in the corner of the watch face.
Rectangular Complications 4
Templates that host SwiftUI content in the rectangular complication families of the watch face.
- ClCLKComplicationTemplateGraphicRectangularFullViewA complication template that fills the graphic rectangular family with a SwiftUI view.
- ClCLKComplicationTemplateGraphicRectangularLargeViewA complication template that hosts a large SwiftUI view in the graphic rectangular family.
- ClCLKComplicationTemplateGraphicRectangularStandardBodyViewA complication template that hosts a SwiftUI view in the standard body of the graphic rectangular family.
- ClCLKComplicationTemplateGraphicRectangularTextGaugeViewA complication template that pairs a SwiftUI view with text and a gauge in the graphic rectangular family.
Rendering Context 1
Values that describe how complication content should adapt to the watch face's rendering context.
- EnComplicationRenderingModeConstants that specify how a complication adapts its content to the watch face's rendering context.