CreationKit Documentation

Structure Messages​Header​Layout.​Configuration

public struct Configuration  

Member Of

MessagesHeaderLayout

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.

Nested Types

MessagesHeaderLayout.Configuration.AvatarRequirement

Initializers

init(title:​subtitle:​tertiary:​avatars:​)

public init(title: String? = nil, subtitle: String? = nil,
                tertiary: String? = nil, avatars: AvatarRequirement = .one)  

Creates a new Configuration for a MessagesHeaderLayout

Parameters

title String?

The title to display in the layout

subtitle String?

The subtitle to display in the layout

tertiary String?

The tertiary text to display in the layout

avatars Avatar​Requirement

The amount of avatars needed to be displayed, either .one or .two.

Methods

make(title:​subtitle:​tertiary:​avatars:​)

public static func make(
      title: String? = nil, subtitle: String? = nil,
      tertiary: String? = nil, avatars: AvatarRequirement = .one) -> Configuration  

Creates a new Configuration for a MessagesHeaderLayout

Parameters

title String?

The title to display in the layout

subtitle String?

The subtitle to display in the layout

tertiary String?

The tertiary text to display in the layout

avatars Avatar​Requirement

The amount of avatars needed to be displayed, either .one or .two.