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
- swift documentation
- MVVM
- 리펙토링
- 리팩토링
- uiscrollview
- UITextView
- SWIFT
- rxswift
- Observable
- 클린 코드
- Protocol
- 애니메이션
- clean architecture
- uitableview
- collectionview
- Human interface guide
- ribs
- UICollectionView
- 스위프트
- swiftUI
- combine
- Xcode
- RxCocoa
- map
- Clean Code
- ios
- HIG
- tableView
- Refactoring
- 리펙터링
Archives
- Today
- Total
목록UIGraphicsGetCurrentContext (1)
김종권의 iOS 앱 개발 알아가기
[iOS - swift] CAGradientLayer, layer.mask (+ 텍스트 gradient fade out 처리)
CAGradientLayer이란? layer에 색 그라데이션을 입히는데 사용되는 객체 주로 UIView나 UILabel의 text에 그라데이션을 입히는데 사용 CAGradientLayer 사용 방법 객체 생성 후 frame 설정: frame은 적용될 view의 bounds로 설정 let gradientLayer = CAGradientLayer() gradientLayer.frame = myView.bounds 그라데이션에 들어갈 색상 추가(처음 ~ 마지막 순서대로 기입): 타입은 [CGColor] 타입 gradientLayer.colors = [UIColor.orange.cgColor, UIColor.red.cgColor] gradientLayer의 속성을 모두 지정하였으므로 (적용될뷰.layer.add..
iOS 응용 (swift)
2021. 3. 26. 02:21