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/BlockView.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Sources/phbar/Views/BlockView.swift') 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) } } } -- cgit v1.2.3