Howdy,
I had the pleasure of discovering the existance of the backAction property in UINavigationItem
today 😃. TLDR this property lets you override the behavior of the native back button in a UINavigationController
.
This feature would be quite convenient for my use case, but unfortunately my app targets iOS 14, so I need an alternative.
In the past, I remember being unsatisfied with existing solutions. IIRC the choices were recreating the back button from scratch (more difficult than it looks) or traversing the tree (fragile). Is this is still the case for iOS 14-15 or are there better solutions?
Thanks,
smkuehnhold