Skip to content

Instantly share code, notes, and snippets.

@JFSene
Created January 14, 2017 19:36
Show Gist options
  • Save JFSene/c5e91883854dba461bb725069516b9a7 to your computer and use it in GitHub Desktop.
Save JFSene/c5e91883854dba461bb725069516b9a7 to your computer and use it in GitHub Desktop.
Setting animation and labels to btns
switch index {
case 0:
UIView.animate(withDuration: 0.3, animations: {
self.btnIniciarOUTLET.setTitle("Próximo", for: .normal)
self.btnIniciarOUTLET.alpha = 1
})
case 1:
UIView.animate(withDuration: 0.3, animations: {
self.btnIniciarOUTLET.setTitle("Próximo", for: .normal)
self.btnIniciarOUTLET.alpha = 1
})
case 0:
UIView.animate(withDuration: 0.3, animations: {
self.btnIniciarOUTLET.setTitle("Entendi", for: .normal)
self.btnIniciarOUTLET.alpha = 1
})
default:
break
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment