Do you remember about this obscure feature added in iOS 14? Holding the back button shows the navigation stack history and lets you navigate to any item. Cool feature, right? Not so fast…
The titles are taken from the back button. If you’re still hiding the back button titles by setting navigationItem.backButtonTitle = ""
, you will have this bug, where rows are just empty. I checked some popular apps and many of them have this issue 😵
Since iOS 14, there’s a proper way to hide the back button title by using backButtonDisplayMode
. @sarunw wrote a detailed guide on it, make sure to check it out!
PS. if you’re on SwiftUI, remember to add the
.navigationTitle(_:)
modifier even when you hide the navigation bar on that view.