diff --git a/lib/ios/UIImage+tint.m b/lib/ios/UIImage+tint.m index 8a8394b3255..91380c520d9 100644 --- a/lib/ios/UIImage+tint.m +++ b/lib/ios/UIImage+tint.m @@ -3,12 +3,11 @@ @implementation UIImage (tint) - (UIImage *)withTintColor:(UIColor *)color { - UIImage *newImage = [self imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate]; -#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000 if (@available(iOS 13.0, *)) { - return [newImage imageWithTintColor:color]; + return [self imageWithTintColor:color renderingMode:UIImageRenderingModeAlwaysOriginal]; } -#endif + + UIImage *newImage = [self imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate]; UIGraphicsBeginImageContextWithOptions(self.size, NO, newImage.scale); [color set]; [newImage drawInRect:CGRectMake(0, 0, self.size.width, newImage.size.height)];