Closed rameezibrahim closed 4 years ago
Hi, What you can do is this:
let backButtonIconName = LanguageManager.shared.isRightToLeft ? "right_arrow" : "left_image"
UIBarButtonItem(image: UIImage(named: backButtonIconName), style: .plain, target: self, action: #selector(leftBarButtonAction(_ :)))
Thank you.
I have created the UIBarButtonItem programmatically as follows:
UIBarButtonItem(image: UIImage(named: backButtonIconName), style: .plain, target: self, action: #selector(leftBarButtonAction(_ :)))
How can I rotate the back button for RTL?]
Current screenshot: