42 lines
1.0 KiB
Swift
42 lines
1.0 KiB
Swift
//
|
|
// 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())
|
|
}
|
|
}
|