What is the purpose of Assets.xcassets
in Watch Extension in WatchOS 2? What images should be included in these assets?
Asked
Active
Viewed 632 times
1 Answers
5
The Assets.xcassets
in the WatchKit extension contains CLKImageProvider
images used by circular, modular, and utilitarian complications. The images are template images that have a tint color applied to them prior to display.
Since they are part of an asset catalog group, you would need to specify the group name when referring to those images:
template.imageProvider = CLKImageProvider(onePieceImage: UIImage(named: "Complication/Circular")!)