aboutsummaryrefslogtreecommitdiff
path: root/Sources/phbar/Views/CellView.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Sources/phbar/Views/CellView.swift')
-rw-r--r--Sources/phbar/Views/CellView.swift10
1 files changed, 4 insertions, 6 deletions
diff --git a/Sources/phbar/Views/CellView.swift b/Sources/phbar/Views/CellView.swift
index 494667c..6b39eb1 100644
--- a/Sources/phbar/Views/CellView.swift
+++ b/Sources/phbar/Views/CellView.swift
@@ -1,13 +1,11 @@
import SwiftUI
struct CellView: View {
- var text: String
+ var cell: Cell
var body: some View {
- VStack {
- Text(text)
- }
- .frame(height: Config.height)
- .background(Color.cyan)
+ Text(cell.rawValue)
+ .frame(height: Config.height)
+ .background(cell.background)
}
}