SwiftUI๋ฅผ ์ด์ฉํ 3D Parallax Card Effect ๋ง๋ค๊ธฐ
- SwiftUI
- GeometryReader
- DragGesture
- Animation
- RotationEffect
- BlendMode
- GeometryReader : GeometryReader๋ฅผ ํ์ฉํ์ฌ ํ๋ฉด ํฌ๊ธฐ์ ๋ ์ด์์ ์ ๋ณด์ ์ ๊ทผํ๊ณ , ๋ค์ํ ๋๋ฐ์ด์ค ํฌ๊ธฐ์์ ์ผ๊ด๋ UI๋ฅผ ์ ๊ณตํ ์ ์์์ต๋๋ค.
- Animation : SwiftUI์์ ์ ๋๋ฉ์ด์ ์ ์ฝ๊ฒ ์ถ๊ฐํ๊ณ , withAnimation ํจ์๋ฅผ ์ฌ์ฉํ์ฌ ์ ๋๋ฉ์ด์ ์ ์ ์ฉํ๋ฉฐ ์ํ๊ฐ ๋ณ๊ฒฝ ์ ํจ๊ป ํด๋๋ฉ์ด์ ์ ์คํํ ์ ์์์ต๋๋ค.
- RotationEffect ๋ฐ BlendMode : RotationEffect๋ฅผ ์ฌ์ฉํ์ฌ ๋ทฐ๋ฅผ ํ์ ์ํค๊ณ , BlendMode๋ฅผ ์ค์ ํ์ฌ ๋ทฐ์ ๋ธ๋๋ฉ ๋ชจ๋๋ฅผ ์กฐ์ ํ ์ ์์์ต๋๋ค.