added poll detail scene with mock data

This commit is contained in:
Flavio Alescio
2023-01-19 15:42:45 +01:00
parent da17249200
commit 84e8d879bd
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)