Skip to content

Instantly share code, notes, and snippets.

@bill350
Created March 13, 2018 15:26
Show Gist options
  • Select an option

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

Select an option

Save bill350/cffba928c388e5e5607257672a5dc10b to your computer and use it in GitHub Desktop.
Reloadable.swift
import UIKit
protocol Reloadable {
func reloadData()
var hasData: Bool { get }
}
extension Reloadable where Self: UIViewController {
var hasData: Bool { return false }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment