AnyEditorContentAttachmentEncoding

public struct AnyEditorContentAttachmentEncoding<T> : AttachmentEncoding

A type-erased implementation of AttachmentEncoding.

  • Undocumented

    Declaration

    Swift

    public typealias EncodedType = T
  • Initializes the Encoder

    Declaration

    Swift

    public init<E>(_ encoder: E) where T == E.EncodedType, E : AttachmentEncoding

    Parameters

    encoder

    Encoder implementation to use

  • Encodes contents based on concrete encoder provided during initialization

    Declaration

    Swift

    public func encode(name: EditorContent.Name, view: UIView) -> T

    Parameters

    name

    Content name

    string

    Attachment view to be encoded