Xcode's "Complications Group" setting for watchOS has little to no documentation
| Originator: | robotspacer | ||
| Number: | rdar://27227802 | Date Originated: | 07-Jul-2016 03:36 PM |
| Status: | Open | Resolved: | |
| Product: | Documentation | Product Version: | N/A |
| Classification: | Enhancement | Reproducible: | N/A |
Summary: When you add a watchOS target to an app, the extension includes a "Complications Group" setting in the "Complications Configuration" section of Xcode. This was not mentioned in the WWDC talk introducing watchOS 2 complications, and I have been unable to find any information about it anywhere else. The setting is linked to an image asset group with sections for different complication types, but what are those images? What sizes should they be? Where are they used? Should they be in color or monochrome? While trying to figure out another issue, I looked at the documentation for CLKComplicationPrivacyBehaviorHideOnLockScreen. This was the one hint I could find anywhere: "For circular, modular small, and utilitarian small complications, ClockKit displays the complication icon provided by your WatchKit extension." I suspected that might be where the "Complications Group" images were used, and some testing confirmed my suspicions. Xcode gives an error if the wrong image sizes are used. This is the only place I've seen that makes it clear what icon sizes to use. I still have no idea if they should be color or monochrome. I can do some testing and see what looks good, but experience tells me that making assumptions based on the current implementation of something is a bad idea. In addition to the lack of documentation, I was able to find various sample projects from WWDC talks that included watchOS support. None of them used the "Complications Group" images at all. Steps to Reproduce: 1. Search the documentation for "Complications Group", or just go through WWDC videos and sample code looking for any information about it. Expected Results: Find some information explaining what the "Complications Group" is for, how those images are used, what sizes they should be, and whether they should be single color or full color. Actual Results: It is difficult to find any information at all without just resorting to trial and error. Version: No current documentation exists
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
Correct sizes
If anyone comes across this while looking for information, these seem to be the correct sizes. They're the same as the "Simple" template image sizes, or "Square" in the case of Utilitarian.
Modular 38mm: 52px
Modular 42mm: 58px
Circular 38mm: 32px
Circular: 42mm: 36px
Utilitarian 38mm: 40px
Utilitarian 42mm: 44px