From 618799ee703cc4addc7e50550ccf87b4b4cc7780 Mon Sep 17 00:00:00 2001 From: Tommaso Negri Date: Fri, 7 Aug 2026 23:52:00 +0200 Subject: make Cell a proper entity --- Sources/phbar/Views/CellView.swift | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'Sources/phbar/Views/CellView.swift') 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) } } -- cgit v1.2.3