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 - Allow editing poll start events.
This commit is contained in:
committed by
Stefan Ceriu
parent
a8165d23a4
commit
0980804213
@@ -28,7 +28,8 @@ enum MockPollEditFormScreenState: MockScreenState, CaseIterable {
|
||||
}
|
||||
|
||||
var screenView: ([Any], AnyView) {
|
||||
let viewModel = PollEditFormViewModel()
|
||||
let viewModel = PollEditFormViewModel(parameters: PollEditFormViewModelParameters(mode: .editing,
|
||||
pollDetails: PollDetails(question: "", answerOptions: ["", ""])))
|
||||
return ([viewModel], AnyView(PollEditForm(viewModel: viewModel.context)))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user