how to make a view fade in and out in swift code example Example: fade anumation swift UIView.animate(withDuration: 1.5) { view.alpha = 1.0 }