include diehammer plan docs
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
//
|
||||
// HistoryView.swift
|
||||
// Bunch O' Dice
|
||||
//
|
||||
// Created by Rory Hinnen on 22/6/11.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct HistoryView: View {
|
||||
@EnvironmentObject var current: Roll
|
||||
@Binding var isShowing: Bool
|
||||
|
||||
var body: some View {
|
||||
VStack{
|
||||
List(current.history) {event in
|
||||
Text("\(event.poolTotal) Dice Rolled, \(event.total) \(event.state.print())")
|
||||
}
|
||||
Spacer()
|
||||
Button("Dismiss", action: {isShowing.toggle()})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
struct HistoryView_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
HistoryView(isShowing: .constant(false))
|
||||
.environmentObject(Roll())
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user