CreationKit Documentation

Class Conversation​Starter​Layout

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

Conforms To

ComponentLayout

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

NSObject

Properties

text

public var text: String?  

tapped​Option

public var tappedOption: (String) -> Void  

Called when an option is tapped

Methods

layout(on:​)

public func layout(on view: UIView)  

update(config:​)

public func update(config: ConversationStarter.Configuration)  

Call with a config to update the layout