diff options
| author | Tommaso Negri <me@tommasongr.com> | 2026-08-07 23:52:00 +0200 |
|---|---|---|
| committer | Tommaso Negri <me@tommasongr.com> | 2026-08-07 23:52:00 +0200 |
| commit | 618799ee703cc4addc7e50550ccf87b4b4cc7780 (patch) | |
| tree | edf2c51bd21144805538e8962a2ee6826f3884a6 /Sources/phbar/Views/CellView.swift | |
| parent | 1268a436aea11d998289c41266059929a68d61e6 (diff) | |
| download | bar-618799ee703cc4addc7e50550ccf87b4b4cc7780.tar.gz bar-618799ee703cc4addc7e50550ccf87b4b4cc7780.zip | |
make Cell a proper entity
Diffstat (limited to 'Sources/phbar/Views/CellView.swift')
| -rw-r--r-- | Sources/phbar/Views/CellView.swift | 10 |
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) } } |
