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 : AttachmentEncodingParameters
encoderEncoder implementation to use
-
Encodes contents based on concrete encoder provided during initialization
Declaration
Swift
public func encode(name: EditorContent.Name, view: UIView) -> TParameters
nameContent name
stringAttachment view to be encoded
View on GitHub
AnyEditorContentAttachmentEncoding Structure Reference