Apple Developer Documentation

An object that manages image-based content and allows you to perform animations on that content.

CALayer

<aside> ๐Ÿ’ก CA = Core Animation

</aside>

์ด๋ฏธ์ง€ ๊ธฐ๋ฐ˜์˜ ์ปจํ…์ธ ๋“ค์„ ๊ด€๋ฆฌํ•˜๊ณ , ํ•ด๋‹น ์ด๋ฏธ์ง€๋“ค๋กœ ์• ๋‹ˆ๋ฉ”์ด์…˜์„ ๋งŒ๋“ค์–ด์ฃผ๋Š” ๊ฐ์ฒด.

Overview

์ „๋ฐ˜์ ์œผ๋กœ ๋งํ•˜๊ณ  ์žˆ๋Š” ๋ ˆ์ด์–ด๋Š” ๋ฌด์–ธ๊ฐ€ ๋น„์ฅฌ์–ผ ์ปจํ…์ธ ๋ฅผ ํ†ตํ•ฉ์ ์œผ๋กœ manageํ•ด์ฃผ๋Š” ๊ฐ์ฒด์˜ ๋Š๋‚Œ์ž…๋‹ˆ๋‹ค.

Hello World

CALayer Tutorial for iOS: Getting Started

As you probably know, everything you see in an iOS app is a view. ์˜ค ๋ญ”๊ฐ€ ๋ฉ‹์žˆ์–ด

์•ฑ์€ ์—ฌ๋Ÿฌ๊ฐ€์ง€์˜ ๋ทฐ๋กœ ๊ตฌ์„ฑ๋˜์–ด ์žˆ์ง€๋งŒ, ๊ฐ ๋ทฐ๋Š” ๋ ˆ์ด์–ด๋ผ๋Š” ํด๋ž˜์Šค์— ์˜ํ•ด backed by

How does CALayer relate to UIView?

UIView ๋Š” ์‚ฌ์šฉ์ž์˜ 'ํ„ฐ์น˜ ์ด๋ฒคํŠธ', ๋ ˆ์ด์•„์›ƒ ๋“ฑ ๋งŽ์€ ๊ฒƒ๋“ค์„ ๋‹ค๋ฃน๋‹ˆ๋‹ค.

๊ทธ๋Ÿฌ๋‚˜, UIView๋Š” ๋“œ๋กœ์ž‰๊ณผ ์• ๋‹ˆ๋ฉ”์ด์…˜์„ ์ง์ ‘์ ์œผ๋กœ ์ปจํŠธ๋กคํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

UIKit delegates that task to the Core Animation framework, which enables the use of CALayer.