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 NSAttributedString

    Declaration

    Swift

    func decode(mode: EditorContentMode, maxSize: CGSize, value: TypeToDecode, context: DecodingContext) throws -> NSAttributedString

    Parameters

    mode

    Mode for decoding

    maxSize

    Maximum available size of the container in which the content will be rendered.

    value

    Value to decode.

    context

    Context used for decoding.