ModelListProviderState
public enum ModelListProviderState<Element> where Element : Model
State of the ListProvider
Warning
Although this haspublic access, it is intended for internal & codegen use and should not be used
directly by host applications. The behavior of this may change without warning. Though it is not used by host
application making any change to these public types should be backward compatible, otherwise it will be a breaking
change.
-
If the list represents an association between two models, the
associatedIdentifierswill hold the information necessary to query the associated elements (e.g. comments of a post)The associatedFields represents the field to which the owner of the
Listis linked to. For example, ifPost.commentsis associated withComment.posttheList<Comment>ofPostwill have a reference to thepostfield inComment.Declaration
Swift
case notLoaded(associatedIdentifiers: [String], associatedFields: [String]) -
Declaration
Swift
case loaded([Element])
View on GitHub