Upvote:7

Aprove answer
[view1, view2, view3].forEach { $0.backgroundColor = .white }

Credit Goes to: stackoverflow.com

Related question with same questions but different answers