CreationKit Documentation

Class Vertical​Centered​Image​Text​Layout

public final class VerticalCenteredImageTextLayout: NSObject, ComponentLayout  
VerticalCenteredImageTextLayout VerticalCenteredImageTextLayout ComponentLayout ComponentLayout VerticalCenteredImageTextLayout->ComponentLayout NSObject NSObject VerticalCenteredImageTextLayout->NSObject

Conforms To

ComponentLayout

A protocol to share components (view layouts) across different types.

NSObject

Methods

layout(on:​)

public func layout(on view: UIView)  

configure(image:​text:​)

public func configure(image: UIImage?, text: String?)  

Configures the layout with an image and text.

Parameters

image UIImage?

The UIImage object to place into the layout. Provide nil if you want to hide the image view.

text String?

The string to place into the layout. Provide nil if you want to hide the label.