CreationKit Documentation

Class List​Cell​Right​Image​Layout

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

Conforms To

ComponentLayout

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

NSObject

Properties

text​Color

public var textColor: UIColor = ColorManager.shared.textBody  

tertiary​Text​Color

public var tertiaryTextColor: UIColor = ColorManager.shared.tertiaryTextBody  

image

public var image: UIImage?  

image​Tint

public var imageTint: UIColor?  

title

public var title: String?  

attributed​Title

public var attributedTitle: NSAttributedString?  

subtitle

public var subtitle: String?  

attributed​Subtitle

public var attributedSubtitle: NSAttributedString?  

tertiary​Text

public var tertiaryText: String?  

attributed​Tertiary​Text

public var attributedTertiaryText: NSAttributedString?  

content​Insets

public var contentInsets: UIEdgeInsets  

alignment

public var alignment: UIStackView.Alignment = .top  

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  

left​Accessory​View

public let leftAccessoryView: UIView  

Methods

layout(on:​)

public func layout(on view: UIView)  

configure(image:​title:​subtitle:​tertiary​Text:​)

public func configure(image: UIImage? = nil, title: String? = nil, subtitle: String? = nil, tertiaryText: String? = nil)  

Configures the layout with an optional image and optional text.

Parameters

image UIImage?

The image to place in the leading image view.

title String?

The title text.

subtitle String?

The subtitle text.

tertiary​Text String?

The tertiary text.

configure(image:​title:​subtitle:​tertiary​Text:​)

public func configure(
    image: UIImage? = nil, title: NSAttributedString? = nil,
    subtitle: NSAttributedString? = nil, tertiaryText: NSAttributedString? = nil)  

Configures the layout with an optional image and optional attributed text.

Parameters

image UIImage?

The image to place in the leading image view.

title NSAttributed​String?

The title text.

subtitle NSAttributed​String?

The subtitle text.

tertiary​Text NSAttributed​String?

The tertiary text.

configure(trailing​Image​View​Configuration:​title:​subtitle:​tertiary​Text:​)

public func configure(
    trailingImageViewConfiguration: RightImageViewConfiguration? = nil, title: String? = nil,
    subtitle: String? = nil, tertiaryText: String? = nil)  

Configures the layout with an optional image and optional attributed text.

Parameters

trailing​Image​View​Configuration Right​Image​View​Configuration?

The configuration object to config the image view.

title String?

The title text.

subtitle String?

The subtitle text.

tertiary​Text String?

The tertiary text.

configure(trailing​Image​View​Configuration:​title:​subtitle:​tertiary​Text:​)

public func configure(
    trailingImageViewConfiguration: RightImageViewConfiguration? = nil, title: NSAttributedString? = nil,
    subtitle: NSAttributedString? = nil, tertiaryText: NSAttributedString? = nil)  

Configures the layout with an optional image and optional attributed text.

Parameters

right​Image​View​Configuration

The configuration object to config the image view.

title NSAttributed​String?

The title text.

subtitle NSAttributed​String?

The subtitle text.

tertiary​Text NSAttributed​String?

The tertiary text.