UIView with round corner and white border July 28, 2023 by Tarik Using the same layer object: view.layer.borderWidth = 1; view.layer.borderColor = [[UIColor whiteColor] CGColor];