So I want to change the text on the back button of a UIViewController, and I want it to satisfy the following criteria:
- Text can be changed dynamically, after the view is presented.
- Right swipe gesture from left edge of screen still works.
So far the answer I found is either How do I change the title of the "back" button on a Navigation Bar which is unable to change the text dynamically
or this https://stackoverflow.com/a/498089/2925345 which removes the swipe gesture.
Is there any way to satisfy both of the criterias?
Thanks