include diehammer plan docs

This commit is contained in:
Rory Hinnen
2026-08-08 18:37:59 -05:00
parent ae99e94cd7
commit 17f2b0a288
67 changed files with 1991 additions and 50 deletions
@@ -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())
}
}