DefaultModelIdentifier
public extension DefaultModelIdentifier
-
Factory to instantiate a
DefaultModelIdentifier.Declaration
Swift
static func makeDefault(id: String) -> ModelIdentifier<M, ModelIdentifierFormat.Default>Parameters
idmodel id value
Return Value
an instance of
ModelIdentifierfor the given model type -
Convenience factory to instantiate a
DefaultModelIdentifierfrom a given modelDeclaration
Swift
static func makeDefault(fromModel model: M) -> ModelIdentifier<M, ModelIdentifierFormat.Default>Parameters
modelmodel
Return Value
an instance of
ModelIdentifierfor the given model type
View on GitHub