generated from StanfordSpezi/SpeziTemplateApplication
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
LifeSpace.swift
36 lines (31 loc) · 896 Bytes
/
LifeSpace.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//
// This source file is part of the LifeSpace based on the Stanford Spezi Template Application project
//
// SPDX-FileCopyrightText: 2023 Stanford University
//
// SPDX-License-Identifier: MIT
//
import Spezi
import SpeziFirebaseAccount
import SwiftUI
@main
struct LifeSpace: App {
@UIApplicationDelegateAdaptor(LifeSpaceDelegate.self) var appDelegate
@AppStorage(StorageKeys.onboardingFlowComplete) var completedOnboardingFlow = false
var body: some Scene {
WindowGroup {
ZStack {
if completedOnboardingFlow {
HomeView()
} else {
EmptyView()
}
}
.sheet(isPresented: !$completedOnboardingFlow) {
OnboardingFlow()
}
.testingSetup()
.spezi(appDelegate)
}
}
}