So, what I want is: use additionalSafeAreaInsets to diminish the effect of the safe area during animation, by setting additionalSafeAreaInsets to the "inverted" values of the safe area. The red box is the safe area (plus some padding) of the presented view - which I'm trying to compensate for during animation, using the additionalSafeAreaInsets property of the view controller owning the view.Īs the gif shows, the safe area is properly adjusted during presentation but not during dismissal. It looks like this property is not accounted for when I'm trying to animate the dismissal of the view controller and its view. And it works great! Except when I try to adjust the additionalSafeAreaInsets of the view controller owning the view during dismissal. Im doing this by creating UIViewControllerAnimatedTransitioning-objects that animate the presented view's frame. I've created a custom UIViewControllerTransitioningDelegate that I use to animate a view from one view controller, to full-screen in another view controller.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |