Post

Replies

Boosts

Views

Activity

Comment on preferredTransition not working when using setViewControllers(_:animated:)
I’m not using UISplitViewController — my view hierarchy is quite simple. I have a standard UICollectionView, and tapping a cell is supposed to show a detail view. This is conceptually similar to the Apple sample code, where a detail view controller is pushed using navigationController.pushViewController. However, I have to use navigationController.setViewControllers([listViewController, detailViewController], animated: false) Is there a recommended approach for enabling the zoom transition?
Topic: UI Frameworks SubTopic: UIKit Tags:
Jul ’25