In my entire iOS app, I want to show custom back button in navigation bar with out text.
Here's my code:
let navBarAppearance = UINavigationBar.appearance()
navBarAppearance.backIndicatorImage = #imageLiteral(resourceName: "back")
navBarAppearance.backIndicatorTransitionMaskImage = #imageLiteral(resourceName: "back")
UIBarButtonItem.appearance().setBackButtonTitlePositionAdjustment(UIOffsetMake(0, -60), for: .default)
But when I'm running the code, its throwing warnings related to layout for my last line of code. How can I have custom back button without text and without getting any warnings during compile & run time?