roun view swift code example Example: add corner radius to uiview swift Click to copyview.layer.cornerRadius = 25 view.layer.masksToBounds = true