I have added the following code to hide the back button title on the navigation bar but it is not working on iOS 15.
UIBarButtonItem.appearance().setBackButtonTitlePositionAdjustment(UIOffset(horizontal: -1000, vertical: 0),
for: UIBarMetrics.default)
can someone help me plz?