Last active
March 13, 2018 15:25
-
-
Save bill350/664e37ba31d407fc5f0cba1da6e658b0 to your computer and use it in GitHub Desktop.
HomeViewController+Reloadable.swift
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
| // MARK: - Reloadable | |
| extension HomeViewController: Reloadable { | |
| var hasData: Bool { | |
| //return if you have data to be currently displayed (from Realm or memory for instance) or not | |
| } | |
| func reloadData() { | |
| // Display progress | |
| // Network call | |
| // Error or data | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment