Skip to content

Instantly share code, notes, and snippets.

@LH17
Created June 2, 2017 12:10
Show Gist options
  • Save LH17/37d7a11ea4326766946e113a7798f817 to your computer and use it in GitHub Desktop.
Save LH17/37d7a11ea4326766946e113a7798f817 to your computer and use it in GitHub Desktop.
ViewStateProtocol protocol
protocol ViewStateProtocol: class {
var stateManager: StateManager? { get }
var loadingView: UIView? { get }
var errorView: UIView? { get }
var emptyView: UIView? { get }
var errorMessage: String? { get set }
func addView(withState state: StatesType)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment