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