Refine loading logic

This commit is contained in:
Alfonso Grillo
2023-01-20 12:25:52 +01:00
parent 729da6d6e3
commit aea4770736
4 changed files with 29 additions and 11 deletions
@@ -32,9 +32,10 @@ final class MockPollHistoryService: PollHistoryServiceProtocol {
polls.send(poll)
}
}
var fetchState: Bool = false
var isFetching: AnyPublisher<Bool, Never> {
Just(false).eraseToAnyPublisher()
Just(fetchState).eraseToAnyPublisher()
}
var activePollsData: [TimelinePollDetails] = (1..<10)