I have a UIView constrained with Auto Layout. It's centered and has a constraint for Width and Height. When it appears, I'm applying a rotation transform to it.
When I hit that animation button, I want it to animate to a point higher on the screen, while rotating back to an "upright" position (ie with no rotation applied). So, I set a new translation transform:
let translation = CGAffineTransform(translationX: 1, y: -100)
UIView.animate(withDuration: 0.5, animations: {
self.blueView.transform = translation
})
What I expect to see is the view rotate back to an upright position while translating upwards.
What I get instead is the view "jumping" to a point off to the right, and then animating upwards while rotating.
How can I fix this so that it doesn't "jump" before animating?

