mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-21 17:12:45 +02:00
Add loading view
This commit is contained in:
@@ -27,11 +27,15 @@ final class MockPollHistoryService: PollHistoryServiceProtocol {
|
||||
Empty().eraseToAnyPublisher()
|
||||
}
|
||||
|
||||
func startFetching() {
|
||||
func next() {
|
||||
for poll in activePollsData + pastPollsData {
|
||||
polls.send(poll)
|
||||
}
|
||||
}
|
||||
|
||||
var isFetching: AnyPublisher<Bool, Never> {
|
||||
Just(false).eraseToAnyPublisher()
|
||||
}
|
||||
|
||||
var activePollsData: [TimelinePollDetails] = (1..<10)
|
||||
.map { index in
|
||||
|
||||
Reference in New Issue
Block a user