I have a HomeViewController that contains a UICollectionView with cells displaying images of size 200×200. When a cell(catogary) is tapped, it navigates to another UIViewController with an animated transition. The animation is that the image expands and then bounces to the top of the viewController’s view taking half of the hight of the screen and the other half is a Table view Cells(subcatogaries of the main catogary).
Current Setup:
HomeViewController with UICollectionView cells (200×200 images).
On cell tap, it navigates to another UIViewController with an animation.
Problem:
I need to replace the second UIViewController with a SwiftUI view while maintaining the animated transition between the HomeViewController and the new SwiftUI view. While I can easily animate transitions between two UIViewControllers or two SwiftUI views, combining both seems challenging.
The animation for the transition is implemented all in UIKIT which means I shuould avoid SwiftUi’s
animations
What I’ve Tried:
I tried to create a struct of ViewRepresentatble and added all the animated components and then display the ViewRepresentatble, while I was able to see everything in terms of the pictures and components, the animation did not work.