all features implemented
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user