PROTOCOL

ViewLoadable

public protocol ViewLoadable: AnyObject

ViewLoadable is an interface declaration for UI components that are capable of displaying a loading state. View should be able to provide visual representation of both loading and normal state.

Properties

isLoading

var isLoading: Bool

It indicates whether the view is currently loading.

Methods

startLoading()

func startLoading()

Sets View into loading state.

stopLoading()

func stopLoading()

Sets View into normal state.