Skip to content

Commit

Permalink
Make the image tinting utility method public (microsoft#195)
Browse files Browse the repository at this point in the history
Co-authored-by: Mathieu Kavalec <[email protected]>
  • Loading branch information
MathieuKavalec and Mathieu Kavalec authored Aug 18, 2020
1 parent fe45056 commit 662784d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ios/FluentUI/Extensions/UIImage+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 662784d

Please sign in to comment.