refactor into smaller units
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
//
|
||||
// DiePoolView.swift
|
||||
// Bunch O' Dice
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct DiePoolView: View {
|
||||
var body: some View {
|
||||
HStack(spacing: 0) {
|
||||
ForEach(Dice.DiceType.allCases, id: \.rawValue) { i in
|
||||
DieView(whichDie: i)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#Preview {
|
||||
DiePoolView()
|
||||
.environmentObject(Roll())
|
||||
}
|
||||
Reference in New Issue
Block a user