From 662784dc64418793410b48f7f742a6a11110cced Mon Sep 17 00:00:00 2001 From: Mathieu Kavalec Date: Tue, 18 Aug 2020 14:59:56 -0700 Subject: [PATCH] Make the image tinting utility method public (#195) Co-authored-by: Mathieu Kavalec --- ios/FluentUI/Extensions/UIImage+Extensions.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ios/FluentUI/Extensions/UIImage+Extensions.swift b/ios/FluentUI/Extensions/UIImage+Extensions.swift index 59e5a2c00f..2d2f8d628a 100644 --- a/ios/FluentUI/Extensions/UIImage+Extensions.swift +++ b/ios/FluentUI/Extensions/UIImage+Extensions.swift @@ -5,15 +5,15 @@ import UIKit -extension UIImage { - class func staticImageNamed(_ name: String) -> UIImage? { +@objc public extension UIImage { + internal class func staticImageNamed(_ name: String) -> UIImage? { guard let image = UIImage(named: name, in: FluentUIFramework.resourceBundle, compatibleWith: nil) else { preconditionFailure("Missing image asset with name: \(name)") } return image } - func image(withPrimaryColor primaryColor: UIColor) -> UIImage { + @objc func image(withPrimaryColor primaryColor: UIColor) -> UIImage { if #available(iOS 13.0, *) { return self.withTintColor(primaryColor, renderingMode: .alwaysOriginal) } else {