update view, still work to do

This commit is contained in:
Rory Hinnen
2026-09-08 17:49:59 -05:00
parent 241a753879
commit b1d4094f78
9 changed files with 201 additions and 204 deletions
+33
View File
@@ -0,0 +1,33 @@
//
// ContentView.swift
// Bunch O' Dice
//
// Created by Rory Hinnen on 22/2/20.
//
import SwiftUI
struct ContentView: View {
@EnvironmentObject var current: Roll
@State var preferredColorScheme: ColorScheme? = nil
var body: some View {
VStack {
switch current.currentPage {
case "OnboardingView":
OnboardingView()
default:
MainView()
}
}
.preferredColorScheme(current.appearance.type)
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
.environmentObject(Roll())
.previewInterfaceOrientation(.portrait)
}
}