Making a watchOS only app, it focuses on complications, I plan to support many styles of complications.
The main app view will be the place that let user change options for complications. Since the app plan to support many complications, it'll be hard to use if there are too many options shows on the watch's screen. Is there any way I can detect which complications been using now, so I can only show options for those complications instead of showing too many options on the watch's face?
The code is simple, for now it supports only three kinds of complication:
ComplicationController.swift
func getComplicationDescriptors(handler: @escaping ([CLKComplicationDescriptor]) -> Void) {
let descriptors = [
CLKComplicationDescriptor(identifier: "complication", displayName: "DDD", supportedFamilies: [CLKComplicationFamily.modularLarge, CLKComplicationFamily.circularSmall, CLKComplicationFamily.modularSmall])
]
handler(descriptors)
}
Thanks.