added poll detail scene with mock data

This commit is contained in:
Flavio Alescio
2023-01-19 15:42:45 +01:00
parent b63e3b219e
commit 333cba0606
14 changed files with 804 additions and 5 deletions
@@ -62,6 +62,9 @@ struct PollHistory: View {
LazyVStack(spacing: 32) {
ForEach(viewModel.viewState.polls ?? []) { pollData in
PollListItem(pollData: pollData)
.onTapGesture {
viewModel.send(viewAction: .showPollDetail(poll: pollData))
}
}
.frame(maxWidth: .infinity, alignment: .leading)