CreationKit Documentation

Class Avatar​List​Cell​Layout

public final class AvatarListCellLayout: NSObject, ComponentLayout  
AvatarListCellLayout AvatarListCellLayout ComponentLayout ComponentLayout AvatarListCellLayout->ComponentLayout NSObject NSObject AvatarListCellLayout->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  

avatar​Group​Configurations

public var avatarGroupConfigurations: [Avatar.Configuration] = []  

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?  

time​Stamp​Text

public var timeStampText: 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  

right​Accessory​View

public let rightAccessoryView: UIView  

Methods

layout(on:​)

public func layout(on view: UIView)  

configure(avatar​Configurations:​title:​subtitle:​tertiary​Text:​)

public func configure(
    avatarConfigurations: [Avatar.Configuration]? = nil, title: String? = nil,
    subtitle: String? = nil, tertiaryText: String? = nil)  

Configures the layout with an optional image and optional text.

Parameters

avatar​Configurations [Avatar.​Configuration]?

The configs to setup the avatar group.

title String?

The title text.

subtitle String?

The subtitle text.

tertiary​Text String?

The tertiary text.

configure(avatar​Configurations:​title:​subtitle:​tertiary​Text:​)

public func configure(
    avatarConfigurations: [Avatar.Configuration]? = nil, title: NSAttributedString? = nil,
    subtitle: NSAttributedString? = nil, tertiaryText: NSAttributedString? = nil)  

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

Parameters

avatar​Configurations [Avatar.​Configuration]?

The configs to setup the avatar group.

title NSAttributed​String?

The title text.

subtitle NSAttributed​String?

The subtitle text.

tertiary​Text NSAttributed​String?

The tertiary text.