Because objects are reference types, not value types, if you set a UIView equal to another UIView, the views are the same object. If you modify one
UIView
Additionally you can use this pattern to copy View controller view
let vc = UIViewController() let anotherVc = UIViewController() vc.view = anotherVc.copyView()
You may need this for caching view controller or cloning.