mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 08:03:50 +02:00
vector-im/element-ios/issues/5114 - Added UI for creating undisclosed polls and logic for displaying them in the timeline.
This commit is contained in:
committed by
Stefan Ceriu
parent
3e3719d13a
commit
eff1d8c81c
@@ -28,8 +28,10 @@ enum MockPollEditFormScreenState: MockScreenState, CaseIterable {
|
||||
}
|
||||
|
||||
var screenView: ([Any], AnyView) {
|
||||
let viewModel = PollEditFormViewModel(parameters: PollEditFormViewModelParameters(mode: .editing,
|
||||
pollDetails: PollDetails(question: "", answerOptions: ["", ""])))
|
||||
let viewModel = PollEditFormViewModel(parameters: PollEditFormViewModelParameters(mode: .creation,
|
||||
pollDetails: PollDetails(type: .disclosed,
|
||||
question: "",
|
||||
answerOptions: ["", ""])))
|
||||
return ([viewModel], AnyView(PollEditForm(viewModel: viewModel.context)))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user