SwiftUI에서 Lottie 를 추가하는 방법
Free Lottie Animation Files, Tools & Plugins - LottieFiles
The world’s largest online platform for the world’s smallest animation format for designers, developers, and more. Access Lottie animation tools and plugins for Android, iOS, and Web.
lottiefiles.com
Lottie 에서 JSON 형식의 움직이는 animation file을 얻을 수 있다.
https://lottiefiles.com/popular
Free Lottie Animation Files, Tools & Plugins - LottieFiles
The world’s largest online platform for the world’s smallest animation format for designers, developers, and more. Access Lottie animation tools and plugins for Android, iOS, and Web.
lottiefiles.com

Xcode 프로젝트 안에 다운 받은 Lottie 파일을 넣어준다.

Lottie 파일을 보여주기 위한 LottieView를 만들어준다.

위와 같이 filename을 넣어서 사용할 수 있다.
'1 - iOS' 카테고리의 다른 글
[iOS/Swift] Xcode CocoaPods Install 코코아팟 설치 방법 (0) | 2022.04.17 |
---|---|
[iOS/Swift] SwiftUI TextEditor background color (0) | 2022.04.12 |
[iOS/Swift] 왼쪽으로 Swipe하여 list item 삭제하기 (0) | 2022.04.11 |
[iOS/Swift] Drag and drop으로 순서 변경 (0) | 2022.04.11 |
[iOS/Swift] SwiftUI foreground notification (2) | 2022.04.05 |