I have two view controllers in my iOS app: a main view controller displaying lists and a detail view controller showing items from a selected list. Both view controllers contain a table view. These view controllers are part of a tab bar controller, which contains a navigation controller. The hierarchy is as follows:
TabBarController
NavigationController
MainListViewController (lists)
DetailViewController (items)
When I select a list in the MainListViewController, the DetailViewController is pushed onto the navigation stack.
When I swipe right from the left edge of the screen to trigger the interactive pop gesture recognizer, I encounter the following error:
Requesting visual style in an implementation that has disabled it, returning nil. Behavior of caller is undefined.
This error occurs both on the simulator and on a real device, regardless of the Xcode version (I’ve tested with both 16.0 and 15.2).
The main issue is that after initiating a swipe (but not completing the pop gesture, i.e., remaining on the detail view controller), any attempt to present another view controller from the detail view controller fails. The presentation does not occur, and there are no further errors or logs indicating the cause.
Here’s a summary of my setup:
Tab bar controller containing a navigation controller.
Main view controller with a table view displaying lists.
Detail view controller with a table view displaying items from the selected list.
Interactive pop gesture recognizer enabled for navigation.
I’ve checked for potential issues with the view controller hierarchy and gesture recognizer conflicts but haven’t found a resolution.
What could be causing this error, and why does it prevent the presentation of a new view controller after partially swiping to pop back?