ContextTransformer
@MainActor
public protocol ContextTransformer
Transformer to be applied to transform one type of context to another.
-
Type of source context
Declaration
Swift
associatedtype SourceContext -
Type of target context
Declaration
Swift
associatedtype TargetContext
-
Transforms one value into another.
Declaration
Swift
@MainActor func transform(_ context: SourceContext) throws -> TargetContextParameters
contextSource content of type
SourceContextReturn Value
converted context of type
TargetContext