Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Xcode
- Notification
- IOS
- JPA
- Firebase
- UIButton
- stack
- github
- SwiftUI
- Code
- Git
- Apple
- appstore
- Swift
- darkmode
- window
- mac
- Session
- rxswift
- 한글
- error
- view
- FLUTTER
- 개발자
- Archive
- MacOS
- iOS16
- Realm
- Python
- 웹뷰
Archives
- Today
- Total
목록uicollectionview (1)
EEYatHo 앱 깎는 이야기
Swift ) Cell에 그림자 + 둥글게 (shadow + corner radius)
일반적으로 shadow랑 corner radius를 같이하면 적용이 안되는데, Cell은 비교적 쉽게 구현할 수 있다. Cell 안에서 Layout할 때, func setupLayout() { layer.shadowColor = UIColor.black.cgColor layer.shadowOpacity = 0.5 layer.shadowRadius = 10 contentView.layer.cornerRadius = 10 contentView.layer.masksToBounds = true } 이렇게, Cell 에 shadow를 넣고, Cell의 contentView에 corner radius를 넣으면 된다.
iOS, Swift/Tip, Bug, Swift Error
2021. 3. 3. 22:17