![](http://i1.daumcdn.net/thumb/C148x148/?fname=https://blog.kakaocdn.net/dn/XluZO/btrG5rJBlLa/q04j8v3TbOm2kLAdjUdTE1/img.png)
CAGradientLayer을 이용해서 Gradient 효과를 만들어보자. Apple Developer Documentation developer.apple.com 우선 간단하게 Gradient를 추가해보자. import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() let gradientLayer = CAGradientLayer() gradientLayer.frame = view.bounds gradientLayer.colors = [UIColor.red.cgColor, UIColor.blue.cgColor] view.layer.addSublayer(gradientLayer) ..
iOS
2022. 7. 12. 16:14
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- BOJ 17298
- crud
- Gradient View
- UICollectionView Error
- swift
- CAGradientLayer
- BOJ 10808
- ios
- git
- sheetPresentationController
- Carousel Effect
- 2023 회고
- BOJ 10820
- NaverMaps
- BOJ 1935
- Algorithm
- autolayout
- github
- bottom sheet
- Stack
- UICollectionView banner
- 요시푸스
- BOJ 17413
- BOJ 10866
- Sheet Height
- Custom Detent
- BOJ 10799
- Card CollectionVIew
- 1406 에디터
- BOJ 10809
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함