include diehammer plan docs
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
//
|
||||
// SettingsView.swift
|
||||
// Bunch O' Dice
|
||||
//
|
||||
// Created by Rory Hinnen on 22/7/2.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct SettingsView: View {
|
||||
@EnvironmentObject var current: Roll
|
||||
@Binding var isShowing: Bool
|
||||
|
||||
var body: some View {
|
||||
VStack{
|
||||
VStack{
|
||||
Text("DieHammer")
|
||||
.font(.title)
|
||||
Text("A roll management tool for Warhammer & Warhammer:40,000")
|
||||
.font(.subheadline)
|
||||
}.padding()
|
||||
Group{
|
||||
VStack{
|
||||
Text("Theme")
|
||||
Button(String(current.appearance.name)) {current.appearance.next()}
|
||||
}
|
||||
Button("Tutorial") {current.currentPage = "OnboardingView"}
|
||||
.padding()
|
||||
}
|
||||
Spacer()
|
||||
Button("Dismiss", action: {isShowing = false})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
struct SettingsView_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
SettingsView(isShowing: .constant(true))
|
||||
.environmentObject(Roll())
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user