aboutsummaryrefslogtreecommitdiff
path: root/Sources/phbar/Views/BlockView.swift
diff options
context:
space:
mode:
authorTommaso Negri <me@tommasongr.com>2026-08-07 23:52:00 +0200
committerTommaso Negri <me@tommasongr.com>2026-08-07 23:52:00 +0200
commit618799ee703cc4addc7e50550ccf87b4b4cc7780 (patch)
treeedf2c51bd21144805538e8962a2ee6826f3884a6 /Sources/phbar/Views/BlockView.swift
parent1268a436aea11d998289c41266059929a68d61e6 (diff)
downloadbar-618799ee703cc4addc7e50550ccf87b4b4cc7780.tar.gz
bar-618799ee703cc4addc7e50550ccf87b4b4cc7780.zip
make Cell a proper entity
Diffstat (limited to 'Sources/phbar/Views/BlockView.swift')
-rw-r--r--Sources/phbar/Views/BlockView.swift4
1 files changed, 2 insertions, 2 deletions
diff --git a/Sources/phbar/Views/BlockView.swift b/Sources/phbar/Views/BlockView.swift
index b7c0e7f..4bbea7a 100644
--- a/Sources/phbar/Views/BlockView.swift
+++ b/Sources/phbar/Views/BlockView.swift
@@ -5,8 +5,8 @@ struct BlockView: View {
var body: some View {
HStack(spacing: 0) {
- ForEach(block.cells.indices, id: \.self) { index in
- CellView(text: block.cells[index])
+ ForEach(block.cells) { cell in
+ CellView(cell: cell)
}
}
}