AnyEditorContentDecoding
public struct AnyEditorContentDecoding<T, C> : EditorContentDecoding
A type-erased implementation of EditorContentDecoding
See also
EditorContentDecoding
-
Initializes AnyEditorContentDecoding
Declaration
Swift
public init<D>(_ decoder: D) where T == D.TypeToDecode, C == D.DecodingContext, D : EditorContentDecodingParameters
decoderDecoder to use
-
Decodes the given value to
NSAttributedStringDeclaration
Swift
public func decode(mode: EditorContentMode, maxSize: CGSize, value: T, context: C) throws -> NSAttributedStringParameters
modeMode for decoding
maxSizeMaximum available size of the container in which the content will be rendered.
valueValue to decode.
contextContext used for decoding.
View on GitHub
AnyEditorContentDecoding Structure Reference