ContentController
public protocol ContentController : AnyObject
Represents a class that loads and refreshes content.
-
The
StatefulViewControllerassociated with theContentControllerinstanceThis property will typically be declared as a weak reference to the associated
StatefulViewController. This is to prevent a strong reference cycle between theStatefulViewControllerand theContentLoader.Declaration
Swift
var statefulViewController: StatefulViewController? { get set } -
Loads the content.
Declaration
Swift
func loadContent()Parameters
completionA
LoadContentCompletionclosure to be executed on load content completion. -
Refreshes the content.
By default, this will just call
loadContent().Declaration
Swift
func refreshContent()Parameters
completionA
LoadContentCompletionclosure to be executed on refresh content completion.
View on GitHub
ContentController Protocol Reference