Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat [#15] Main App 파일 View 전환 로직 구현 #16

Merged
merged 4 commits into from
Apr 11, 2024

Conversation

kim-seonwoo
Copy link
Member

@kim-seonwoo kim-seonwoo commented Apr 11, 2024

👾 작업 내용

  • Main App 파일에 루트뷰를 바꿔주는 듯한 코드를 넣었습니다.
    @State private var isLoading: Bool = true
    @AppStorage("isOnboarding") var isOnboarding : Bool = true
  • AppStorage는 UserDefaults에 Onboarding정보를 저장하기 위해 사용하였습니다.
  • SplashView로 바인딩 하여 1.5초가 지나면 isLoading이 toggle되게 하였습니다.
  • SplashView는 임의적으로 구현하였습니다.

🚀 PR Point

- @AppStorage("isOnboarding") var isOnboarding : Bool = false로 되어있어야 맞지만, 앞으로의 작업상 편의를 위하여 main view로 바로 넘어가도록 true로 처리하였습니다.

  • CompleteView에서 해당 값을 변경합니다.

📸 스크린샷

구현 내용 스크린샷
Splash

✅ CheckList

  • 오류 없이 빌드되는지 확인
  • 로그용 print문 제거
  • 불필요한 주석 제거
  • 코드 컨벤션 확인

🔗 Issue

Resolved #15

@kim-seonwoo kim-seonwoo added 😎선우 선우의 issue ✨FEAT 기능 구현 labels Apr 11, 2024
@kim-seonwoo kim-seonwoo added this to the 🔭2차 스프린트🪐 milestone Apr 11, 2024
@kim-seonwoo kim-seonwoo requested a review from Zoe0929 April 11, 2024 14:22
@kim-seonwoo kim-seonwoo self-assigned this Apr 11, 2024
@kim-seonwoo kim-seonwoo linked an issue Apr 11, 2024 that may be closed by this pull request
Copy link
Member

@Zoe0929 Zoe0929 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 왕좋아요.

@kim-seonwoo kim-seonwoo merged commit e58a6f4 into develop Apr 11, 2024
@Zoe0929 Zoe0929 deleted the feat/#15-Main branch June 19, 2024 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨FEAT 기능 구현 😎선우 선우의 issue
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[Feat] Main App View 전환 로직 구현
2 participants