DataControllerStateDelegate
A delegate protocol some Controllers use to propagate the information about controller state
changes. You can use it to let
users know a certain activity is happening in the background, for example using a non-blocking activity indicator.
public protocol DataControllerStateDelegate: AnyObject
Inheritance
AnyObject
Default Implementations
controller(_:didChangeState:)
func controller(_ controller: DataController, didChangeState state: DataController.State)
Requirements
controller(_:didChangeState:)
Called when the observed controller changed it's state.
func controller(_ controller: DataController, didChangeState state: DataController.State)
Parameters
controller
: The controller the change is related to.state
: The new state of the controller.