Skip to content

Commit 4b1fdd3

Browse files
committed
One shot
0 parents  commit 4b1fdd3

44 files changed

Lines changed: 7221 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Nested/Nested.xcodeproj/project.pbxproj

Lines changed: 583 additions & 0 deletions
Large diffs are not rendered by default.

Nested/Nested.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>SchemeUserState</key>
6+
<dict>
7+
<key>Nested.xcscheme_^#shared#^_</key>
8+
<dict>
9+
<key>orderHint</key>
10+
<integer>0</integer>
11+
</dict>
12+
</dict>
13+
</dict>
14+
</plist>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"colors" : [
3+
{
4+
"idiom" : "universal"
5+
}
6+
],
7+
"info" : {
8+
"author" : "xcode",
9+
"version" : 1
10+
}
11+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "universal",
5+
"platform" : "ios",
6+
"size" : "1024x1024"
7+
},
8+
{
9+
"appearances" : [
10+
{
11+
"appearance" : "luminosity",
12+
"value" : "dark"
13+
}
14+
],
15+
"idiom" : "universal",
16+
"platform" : "ios",
17+
"size" : "1024x1024"
18+
},
19+
{
20+
"appearances" : [
21+
{
22+
"appearance" : "luminosity",
23+
"value" : "tinted"
24+
}
25+
],
26+
"idiom" : "universal",
27+
"platform" : "ios",
28+
"size" : "1024x1024"
29+
}
30+
],
31+
"info" : {
32+
"author" : "xcode",
33+
"version" : 1
34+
}
35+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"author" : "xcode",
4+
"version" : 1
5+
}
6+
}

Nested/Nested/Core/NestedApp.swift

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
//
2+
// NestedApp.swift
3+
// Nested
4+
//
5+
// Created by jiwon jeong on 8/30/26.
6+
//
7+
8+
import SwiftUI
9+
10+
/// Nested — Settle in Smarter.
11+
///
12+
/// The app's entry point. Mirrors the Uplift architecture: a single app-wide ViewModel is
13+
/// created here and injected as an `EnvironmentObject`, and the root view switches between
14+
/// the onboarding questionnaire and the main tabbed experience.
15+
@main
16+
struct NestedApp: App {
17+
18+
// MARK: - Properties
19+
20+
@StateObject private var mainViewModel = MainView.ViewModel()
21+
@StateObject private var dataManager = DataManager.shared
22+
23+
// MARK: - UI
24+
25+
var body: some Scene {
26+
WindowGroup {
27+
Group {
28+
if mainViewModel.hasOnboarded {
29+
MainView()
30+
} else {
31+
OnboardingView()
32+
}
33+
}
34+
.environmentObject(mainViewModel)
35+
.environmentObject(dataManager)
36+
.tint(Constants.Colors.green)
37+
}
38+
}
39+
40+
}

0 commit comments

Comments
 (0)