Why? Sooner or later an iOS developer needs custom animations between views. This is often a mixture of position changes and scaling mainly just a view’s frame to another view’s frame animation. You might first try something like this:
1 2 3 |
UIView.animate(withDuration: 1) { myView.frame = CGRect(x: 60, y: 60, width: 100, height: 100) } |
Sometimes this will work, but not if myView has any subviews. For example, if myView …