PROTOCOL
FormOperationModel
public protocol FormOperationModel: UIOperationModel where InteractionModelType == FormModel,
ErrorInteractionModelType == UIInteractionModel
A form operation that may contain a URL
which can be handled with formActionModel
and buildParameters
, and has an interactionModel
of type FormModel
.
Main action is represented with formActionModel
.
Properties
formActionModel
var formActionModel: FormActionModel
A FormActionModel
that is to be submitted after receiving a result from opening the URL.
buildParameters
var buildParameters: (URL) throws -> [String: Any]
Builds a Dictionary<String, Any> from the result received from the URL.