Class
MessagesHeaderLayout
public final class MessagesHeaderLayout: NSObject, ComponentLayout
A header for MessagesViewController. This could possible be placed elsewhere, but it's main design is made to be placed in a MessagesViewController as a header.
Relationships
Nested Types
MessagesHeaderLayout.Configuration
Conforms To
ComponentLayout
A protocol to share components (view layouts) across different types.
NSObject
Properties
titleComponent
public private(set) lazy var titleComponent: Component<TitleLayout>
The component that holds the TitleLayout for the text. You can use this property if you need to change the fonts for the labels if need be.
avatar
public private(set) lazy var avatar: Avatar
The main avatar view. This will always be displayed even if you pass nil into the config.
trailingAvatar
public private(set) lazy var trailingAvatar: Avatar
The secondary avatar. This should only be displayed if there is a second item in the config.
leadingTitleSpacing
public var leadingTitleSpacing: CGFloat = 0
Methods
layout(on:)
public func layout(on view: UIView)