UIKit(7)
-
[iOS] UIColor와 CGColor의 차이점을 알아보자
최근, 다크 모드 대응에 관해서 빡세게 공부를 하고 있는 와중에 UIColor가 들어가는 부분과 CGColor과 들어가는 부분이 엄격하게 구분되어 있는 것을 보고 이 두개의 차이점이 궁금해졌다. 그래서 오늘은 한번 UIColor와 CGColor의 차이점을 알아보려 한다. 일단, 공식문서를 살펴보면 UIColor는 색상 데이터와 불투명도를 저장하는 개체, CGColor는 색상 해석 방법을 지정하는 색상 공간과 함께 색상을 정의하는 구성요소 집합이라는 설명이 쓰여 있었다. 아직, 감이 잘 안오지만, 더 직접적으로 비교해보자. 가장 크게 비교할 수 있는 부분이 등장했다. UIColor는 우리가 정말 많이 그동안 다루었던 UIKit 프레임워크의 하위 요소, 즉 User Interface를 다루는 곳에서 지정하는..
2021.12.17 -
[UIView] 카드를 뒤집어보자 (transition animation)
transition(with:duration:options:animations:completion:) | Apple Developer DocumentationCreates a transition animation for the specified container view.developer.apple.com transition(from:to:duration:options:completion:) | Apple Developer DocumentationCreates a transition animation between the specified views using the given parameters.developer.apple.com 1️⃣ UIView의 transition 코드 살펴보기오늘은 개발에서 ..
2021.10.16