Animations
Native UIKit methods
username.frame.origin.x = 300
password.frame.origin.x = 300
loginButton.alpha = 0
UIView.animateWithDuration(1, delay: 0.5, options: .CurveEaseOut, animations: {
username.frame.origin.x = 10
password.frame.origin.x = 10
loginButton.alpha = 1
}, completion: {
//Things to be done after the animation finishes, like doing another animation
})




Frameworks, and Uber
Last updated