Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bigMOTOR/b9041c6463352f071a14fec97d445edd to your computer and use it in GitHub Desktop.
Save bigMOTOR/b9041c6463352f071a14fec97d445edd to your computer and use it in GitHub Desktop.
2020-12-20_Article_SwiftUInCleanArchitecture_1
protocol ObserveTimerUseCase {
func startTimer() -> AnyPublisher<TimeInterval, Never>
}
extension ObserveTimerUseCase where Self: TimerRepositoryHolderType {
func startTimer() -> AnyPublisher<TimeInterval, Never> {
return self.timerRepository.startTimer()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment