Add loading view

This commit is contained in:
Alfonso Grillo
2023-01-20 12:11:12 +01:00
parent 512f9ae7ed
commit e067e044ef
8 changed files with 93 additions and 11 deletions
@@ -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