Open
Conversation
- Resource 폴더에 JLifeLogo.gif 추가
- LoadingView, LoadingViewController 파일 생성 - 로딩뷰 내 구성 요소 배치 - 로딩뷰컨트롤러 내 SwiftUI 프리뷰로 확인 가능
- 로딩뷰에서 Gifu를 사용해 gif 1회 재생 설정 - loop 완료 시 NotificationCenter로 isGifDone 알림 전송
- 로딩뷰와 동일한 위치 및 비율 제약 적용
- 이미지 비율 유지를 위해 height = width 제약 설정
- LoadingViewController에서 isGifDone 알림 수신 시 popToRootViewController 실행
- systemBackground 대신 white 색상 사용 - 다크 모드 시 gif 배경이 드러나는 문제 개선
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
💛 앱 실행시 처음 노출될 로딩 화면을 구성하고, 로고 gif 1회 재생 후 메인 화면으로 전환하는 흐름을 구현했습니다.
🩶주요변경사항
🤍 RootView 에서 로딩뷰를 띄우는 연결 작업은 추후에 별도 이슈로 진행하겠습니다.
PS. gif이미지의 배경이 흰색이라 시스템배경 다크모드시 이질감이 발생하여 배경색을 white로 고정했습니다.