Created
June 1, 2016 17:57
-
-
Save FlorianBasso/6e1c4aae43f2056362dd59899722f4b4 to your computer and use it in GitHub Desktop.
Example of ViewModelDelegate implementation
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
extension ViewController: ViewModelDelegate { | |
func viewModelDidStartLoad() { | |
print("Started !") | |
} | |
func viewModelDidLoad() { | |
self.registerCells() | |
self.collectionView.reloadData() | |
} | |
func viewModelDidFail() { | |
print("Shit happens...") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment