animate changing the alpha swift code example Example: fade anumation swift UIView.animate(withDuration: 1.5) { view.alpha = 1.0 }