mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-23 10:02:46 +02:00
Fix: allow to render a TimelinePoll even if the poll is loading
This commit is contained in:
@@ -37,6 +37,12 @@ enum TimelinePollEventType {
|
||||
case ended
|
||||
}
|
||||
|
||||
enum TimelinePollState {
|
||||
case loading
|
||||
case loaded
|
||||
case invalidStartEvent
|
||||
}
|
||||
|
||||
struct TimelinePollAnswerOption: Identifiable {
|
||||
var id: String
|
||||
var text: String
|
||||
@@ -99,6 +105,7 @@ struct TimelinePollViewState: BindableState {
|
||||
}
|
||||
|
||||
struct TimelinePollViewStateBindings {
|
||||
var pollState: TimelinePollState
|
||||
var alertInfo: AlertInfo<TimelinePollAlertType>?
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user