UIView 라운드
-
[iOS|Swift] UIView 커스텀하기 (라운드)Swift 2022. 4. 22. 20:55
UIView 라운드 생성하기 1. 모서리 라운드 크기 지정하기 // Declaration var cornerRadius: CGFloat { get set } testUIView.layer.cornerRadius = 50 The default value of this property is 0.0. 2. 테두리 굵기 주기 // Declaration var borderWidth: CGFloat { get set } testUIView.layer.borderWidth = 10 The default value of this property is 0.0. 3. 테두리 색상 지정하기 // Declaration var borderColor: CGColor? { get set } testUIView.layer.borde..