how to remove a subview swift code example Example: how to remove subview siwft 5 yourView.removeFromSuperview()