This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 🍎 | |
private(set) lazy var matchState = | |
Property<MatchState>(mutableMatchState) | |
let mutableMatchState: MutableProperty<MatchState> | |
private let eventPipe = Signal<Event, Never>.pipe() | |
var events: Signal<Event, Never> { | |
return eventPipe.output | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 🍎 | |
enum MatchState { | |
case initial | |
case error(error: MatchError) | |
case loading | |
case started(stack: MatchStack) | |
case finished(moreStacksAvailable: Bool, canLoadMoreStacks: Bool, newStackAt: Date) | |
} | |
enum Event { |
NewerOlder