Skip to content

Commit

Permalink
Merge pull request #90 from DeveloperAcademy-POSTECH/fix-onboarding
Browse files Browse the repository at this point in the history
온보딩 화면 관련 데이터 수정
  • Loading branch information
dbqls200 authored Jun 6, 2024
2 parents 4898639 + ffdf68f commit 19166d6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions MinGenie/MinGenie/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import SwiftUI
struct ContentView: View {
@Environment(\.scenePhase) var phase

@StateObject private var shakeDetectionModel = ShakeDetectionModel()
@StateObject var shakeDetectionModel = ShakeDetectionModel()
@StateObject var musicPlayerModel = MusicPlayerModel.shared

@State private var hasSeenOnboarding: Bool = false
@AppStorage("Onboarding") var hasSeenOnboarding = false

var body: some View {
if hasSeenOnboarding {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
import SwiftUI

struct OnboardingLastPageView: View {
@Binding var hasSeenOnboarding: Bool

let title: String
let imageName: String
@Binding var hasSeenOnboarding: Bool

var body: some View {
ZStack {
Expand Down
4 changes: 2 additions & 2 deletions MinGenie/MinGenie/OnboardingViews/OnboardingTabView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ struct OnboardingTabView: View {
)
} else if currentPage == 6 {
OnboardingLastPageView(
hasSeenOnboarding: $hasSeenOnboarding,
title: "음악과 함께\n일할 준비가 되셨나요?",
imageName: "headphone",
hasSeenOnboarding: $hasSeenOnboarding
imageName: "headphone"
)
}
}
Expand Down

0 comments on commit 19166d6

Please sign in to comment.