I'm building a Catalyst macOS app but got this bug.
Basically, I cannot go back to the top level list while tapping the back button in the side bar. The cell row got automatically selected while going back.
The source code of this kind of split view controller looks like:
Full source code: https://github.com/imWildCat/CatalystTableViewAutoSelectedOnPopDemo
Basically, I cannot go back to the top level list while tapping the back button in the side bar. The cell row got automatically selected while going back.
The source code of this kind of split view controller looks like:
Code Block swift class RootSplitVC: UISplitViewController { override func viewDidLoad() { super.viewDidLoad() let viewController = SideBarListViewController() primaryBackgroundStyle = .sidebar preferredDisplayMode = .oneBesideSecondary let listNavigationVC = UINavigationController(rootViewController: viewController) viewControllers = [ listNavigationVC, // could only be reproduced on Big Sur with Optimized for Mac DetailViewController(), // this does not matter ]
Full source code: https://github.com/imWildCat/CatalystTableViewAutoSelectedOnPopDemo