EditorContentDecoding
public protocol EditorContentDecoding
An object capable of decoding the given type of content into NSAttributedString for using in EditorView or the RendererView.
-
Undocumented
Declaration
Swift
associatedtype TypeToDecode -
Undocumented
Declaration
Swift
associatedtype DecodingContext -
Decodes the given value to
NSAttributedStringDeclaration
Swift
func decode(mode: EditorContentMode, maxSize: CGSize, value: TypeToDecode, context: DecodingContext) 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
EditorContentDecoding Protocol Reference