diff options
| author | Tommaso Negri <me@tommasongr.com> | 2026-07-27 16:18:34 +0200 |
|---|---|---|
| committer | Tommaso Negri <me@tommasongr.com> | 2026-07-27 16:18:34 +0200 |
| commit | 535b42a7b8304340182ca1367aa42f047eb06bff (patch) | |
| tree | 88e15512f874a00886fc7b97861feb5e92c6aaf5 /Sources/phbar/Views/BlockView.swift | |
| parent | 6d165c74a5a6b471c155b12ab15ef833d6b2aa36 (diff) | |
| download | bar-535b42a7b8304340182ca1367aa42f047eb06bff.tar.gz bar-535b42a7b8304340182ca1367aa42f047eb06bff.zip | |
scaffold basic structure
Diffstat (limited to 'Sources/phbar/Views/BlockView.swift')
| -rw-r--r-- | Sources/phbar/Views/BlockView.swift | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Sources/phbar/Views/BlockView.swift b/Sources/phbar/Views/BlockView.swift new file mode 100644 index 0000000..b7c0e7f --- /dev/null +++ b/Sources/phbar/Views/BlockView.swift @@ -0,0 +1,13 @@ +import SwiftUI + +struct BlockView: View { + @ObservedObject var block: Block + + var body: some View { + HStack(spacing: 0) { + ForEach(block.cells.indices, id: \.self) { index in + CellView(text: block.cells[index]) + } + } + } +} |
