Class
VerticalCenteredImageTextLayout
public final class VerticalCenteredImageTextLayout: NSObject, ComponentLayout
Relationships
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
Name | Type | Description |
---|---|---|
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. |