Created
March 13, 2018 15:26
-
-
Save bill350/cffba928c388e5e5607257672a5dc10b to your computer and use it in GitHub Desktop.
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
| 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