Skip to content

Commit

Permalink
NMC 2298 - Code review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
TSI-amrutwaghmare committed Mar 19, 2024
1 parent 92b61f8 commit 977127a
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions iOSClient/Extensions/UIImage+Extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -141,18 +141,7 @@ extension UIImage {

return newImage
}

func imageColor(_ color: UIColor) -> UIImage {
if #available(iOS 13.0, *) {
return self.withTintColor(color, renderingMode: .alwaysOriginal)
} else {
return UIGraphicsImageRenderer(size: size, format: imageRendererFormat).image { _ in
color.set()
withRenderingMode(.alwaysTemplate).draw(at: .zero)
}
}
}


func isEqualToImage(image: UIImage?) -> Bool {
if image == nil { return false }
let data1: NSData = self.pngData()! as NSData
Expand Down

0 comments on commit 977127a

Please sign in to comment.