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 |
Tags
- 리펙토링
- 스위프트
- ios
- 애니메이션
- Xcode
- tableView
- swiftUI
- Protocol
- collectionview
- 클린 코드
- uiscrollview
- SWIFT
- Observable
- uitableview
- rxswift
- clean architecture
- RxCocoa
- map
- Human interface guide
- 리팩토링
- combine
- swift documentation
- HIG
- 리펙터링
- UITextView
- MVVM
- Refactoring
- ribs
- UICollectionView
- Clean Code
Archives
- Today
- Total
목록conic (1)
김종권의 iOS 앱 개발 알아가기
[iOS - swift] CAGradientLayer, Gradation의 종류, axial, radial, conic (linear, circle, sweep)
CAGradientLayer CALayer의 subclass이며, background 색상이나 layer의 색상을 gradient으로 만들 수 있는 인스턴스 gradient 종류는 3가지가 존재 axial (linear) radial (circle) conic (sweep) gradient를 사용할 때 핵심은 프로퍼티 locations [NSNumber] 위치 값 예시) [0, 0.5, 1] - 0번까지 첫 번째 색, 0.5까지 두 번째 색, 1까지 세 번째 색 startPoint, endPoint 값 axial일때 - (0,0)은 좌측 상단, (1,1)은 우측 하단 radial일때 - (0,0)은 원 내부 중심, (1,1)은 원 바깥 테두리 conic일때 - (0,0)우측하단, (1,1)은 (0,0)에..
iOS 응용 (swift)
2022. 4. 7. 23:41