I have 2 view controllers, lets call them ViewControllerA
and ViewControllerB
setup in a storyboard with autolayout. I want to animate a slide up/down animation between the 2 view controllers.
When started ViewControllerA
is visible on screen. When an action is triggered I want ViewControllerB
to slide down, so it's view.origin.y
has a negative (-480) value at start and at end of animation it's view.origin.y
is 0.
However when doing this animation Xcode nags about Unable to simultaneously satisfy constraints.
If want to animate going back from ViewControllerB
to ViewControllerA
with a slide up animation then ViewControllerA
s view.origin.y
is a positive value (480) at start and at end of animation it's view.origin.y
is 0 and Xcode does not nag anything about constraints.
Is there something special I need to take into consideration when animating from a negative y value?