Reputation: 347
I have got this code in AppDelegate U
INavigationBar.appearance().backIndicatorImage = #imageLiteral(resourceName: "backarrow")
And even though the image's color is white it shows it as blue.How can i change the tintcolor of this image?
Upvotes: 2
Views: 1118
Reputation: 2820
Swift 5.x & Xcode 12 Solution:
let image = UIImage(named: "abc")!.withRenderingMode(.alwaysOriginal)
navigationBar.backIndicatorImage = image
navigationBar.backIndicatorTransitionMaskImage = image
Upvotes: 0
Reputation: 19156
Assets.xcassets
backarrow
Attributes Inspector
Render As
value form Default
to Original Image
Upvotes: 3