I'm trying to add a tint color to a Complication Template image. When I'm scrolling through the options to customize my watch face, the tint color is correct. However, once I select the complication and return to the normal watch face state, the color switches back to white.
- (void)getLocalizableSampleTemplateForComplication:(CLKComplication *)complication withHandler:(void(^)(CLKComplicationTemplate * __nullable complicationTemplate))handler {
CLKComplicationTemplateModularSmallSimpleImage *modularTemplate = [[CLKComplicationTemplateModularSmallSimpleImage alloc] init];
CLKImageProvider *imageProvider = [CLKImageProvider imageProviderWithOnePieceImage:[UIImage imageNamed:@"Complication/Modular"]];
imageProvider.tintColor = [UIColor colorWithRed:0.412 green:0.443 blue:0.773 alpha:1.000];
modularTemplate.imageProvider = imageProvider;
handler(modularTemplate);
}
Customizing: Tint is correct while customizing
After complication is selected: Tint is gone and it's back to a white image