Setting default image rendering mode to automatic in image bar button
This commit is contained in:
parent
5a33142934
commit
0c54273066
@ -12,7 +12,7 @@
|
||||
// MARK: - Initializers
|
||||
//--------------------------------------------------
|
||||
|
||||
public static func create(with image: UIImage?, renderingMode: UIImage.RenderingMode = .alwaysTemplate) -> Self {
|
||||
public static func create(with image: UIImage?, renderingMode: UIImage.RenderingMode = .automatic) -> Self {
|
||||
let actionObject = ActionDelegate()
|
||||
let button = self.init(image: image?.withRenderingMode(renderingMode), style: .plain, target: actionObject, action: #selector(actionObject.callActionBlock))
|
||||
button.actionDelegate = actionObject
|
||||
|
||||
Loading…
Reference in New Issue
Block a user