Skip to content

Instantly share code, notes, and snippets.

@bill350
Last active March 13, 2018 15:25
Show Gist options
  • Select an option

  • Save bill350/664e37ba31d407fc5f0cba1da6e658b0 to your computer and use it in GitHub Desktop.

Select an option

Save bill350/664e37ba31d407fc5f0cba1da6e658b0 to your computer and use it in GitHub Desktop.
HomeViewController+Reloadable.swift
// 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