Created
November 14, 2018 21:41
-
-
Save pzmudzinski/5ff46c7a90bc314819eadd7722826deb to your computer and use it in GitHub Desktop.
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
import RxSwift | |
import RxCocoa | |
class BooksViewModel { | |
// MARK: inputs | |
let deleteCommand = PublishRelay<IndexPath>() | |
// MARK: outputs | |
let items: Observable<[Book]> | |
private let disposeBag = DisposeBag() | |
init(api: Api) { | |
items = api.getBooks() | |
// TBD | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment