CreationKit Documentation

Class Messages​Header​Layout

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.

MessagesHeaderLayout MessagesHeaderLayout NSObject NSObject MessagesHeaderLayout->NSObject ComponentLayout ComponentLayout MessagesHeaderLayout->ComponentLayout

Nested Types

MessagesHeaderLayout.Configuration

Conforms To

ComponentLayout

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

NSObject

Properties

title

public var title: String?  

The title

subtitle

public var subtitle: String?  

The subtitle

tertiary

public var tertiary: String?  

The tertiary text

title​Component

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.

trailing​Avatar

public private(set) lazy var trailingAvatar: Avatar  

The secondary avatar. This should only be displayed if there is a second item in the config.

leading​Title​Spacing

public var leadingTitleSpacing: CGFloat = 0  

Methods

layout(on:​)

public func layout(on view: UIView)