one cell kind at compile time 3. Support for ListState 4. Customization for the .Loading and .Error state 5. Independence from any Layout 1 The one good thing that came out of Microsoft.
viewModel: VM) -> Void } public protocol ViewModelReusable: ViewModelConfigurable { static var reuseType: ReuseType { get } static var reuseIdentifier: String { get } } public enum ReuseType { case NIB(UINib) case ClassReference(AnyClass) }
to send REST API requests. */ public protocol Endpoint { /// The path for the request var path: String { get } /// The HTTPMethod for the request var method: HTTPMethod { get } /// Optional parameters for the request var parameters: [String : AnyObject]? { get } /// How the parameters should be encoded var parameterEncoding: HTTPParameterEncoding { get } /// The HTTP headers to be sent var httpHeaderFields: [String : String]? { get } }