CreationKit Documentation

Class Title​Layout

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

Conforms To

ComponentLayout

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

NSObject

Properties

content​Insets

public var contentInsets: UIEdgeInsets  

title

public var title: String?  

attributed​Title

public var attributedTitle: NSAttributedString?  

subtitle

public var subtitle: String?  

tertiary

public var tertiary: String?  

title​Label

public private(set) lazy var titleLabel: UILabel  

subtitle​Label

public private(set) lazy var subtitleLabel: UILabel  

tertiary​Label

public private(set) lazy var tertiaryLabel: UILabel  

spacing

public var spacing: CGFloat = 8  

The vertical spacing between the text.

Methods

layout(on:​)

public func layout(on view: UIView)