
UIView
BackgroundColor



UILabel 과 UIButton 때와 마찬가지로 커스텀 컬러를 설정할 수 있다.
Alpha
UIView 의 투명도를 설정할 수 있다.

Corner Radius
Identity Inspector 에서 User Defined Runtime Attributes 항목


십자 버튼(+) 클릭
Key Path : layer.cornerRadius 선택
Type : Number 선택
Value : Radius 값 설정
RuntimeAttributes 이기 때문에 스토리보드 Preview 에는 안보이고, 실행 시켰을 때 시뮬레이터에 반영된 모습이 노출되는 것을 확인할 수 있다.
<-- Corner Radius 를 적용시킨 결과
'swift' 카테고리의 다른 글
| UIScrollView (0) | 2024.06.21 |
|---|---|
| UIStackView (0) | 2024.06.21 |
| UIImageView (1) | 2024.06.21 |
| UIButton (1) | 2024.06.21 |
| UILabel (0) | 2024.06.21 |