ProxyElement
public protocol ProxyElement : Element
Custom elements commonly use another element to actually display content. For example, a profile element might
display an image and a few labels inside a Column
element. The ProxyElement protocol is provided to make that
task easier.
Conforming types only need to implement elementRepresentation
in order to generate an element that will be
displayed.
-
Returns an element that represents the entire content of this element.
Declaration
Swift
var elementRepresentation: Element { get }
-
content
Extension methodDeclaration
Swift
public var content: ElementContent { get }
-
backingViewDescription(with:
Extension method) Declaration
Swift
public func backingViewDescription(with context: ViewDescriptionContext) -> ViewDescription?