Created
August 10, 2017 15:32
-
-
Save ncreated/e0707d973cecb1d5542889492e4ff2f6 to your computer and use it in GitHub Desktop.
Medium blogpost snippet
This file contains hidden or 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
| import RxSwift | |
| import RxCocoa | |
| final class Toggle { | |
| // MARK: - Properties | |
| private let storage: ToggleStorage | |
| // MARK: - Initializer | |
| init(storage: ToggleStorage) { | |
| self.storage = storage | |
| } | |
| // MARK: - Public | |
| func manage(change: Observable<Bool>) -> (value: Driver<ToggleValue>, | |
| isBusy: Driver<Bool>) { | |
| return (value: .empty(), isBusy: .empty()) // TODO | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment