I'm working on an app that uses a UITabBarController, where each tab contains a UINavigationController stack.
I'm attempting to create a UIDynamicAnimator that will use UIDynamicBehaviors to animate in, from the top, a UIView from under the UINavigationBar, such that it collides with the UITabBarController's UITabBar and pushes it off the screen.
In order to achieve this, my reference view for the UIDynamicAnimator must contain the UITabBarController's view.
Is it okay to use the UIWindow instance as the reference view for the UIDynamicAnimator?
(Please provide feedback on this approach as well, I see others modifying the frame of UITabBarController.tabBar - is that bad practice?)