Modal
public struct Modal : Codable, Sendable, Equatable
Modal display content
-
Modal templates
See moreDeclaration
Swift
public enum Template : String, Codable, Sendable -
The heading
Declaration
Swift
public var heading: InAppMessageTextInfo? -
The body
Declaration
Swift
public var body: InAppMessageTextInfo? -
The media
Declaration
Swift
public var media: InAppMessageMediaInfo? -
The footer
Declaration
Swift
public var footer: InAppMessageButtonInfo? -
The buttons
Declaration
Swift
public var buttons: [InAppMessageButtonInfo]? -
The button layout type
Declaration
Swift
public var buttonLayoutType: InAppMessageButtonLayoutType? -
The template
Declaration
Swift
public var template: Template? -
The background color
Declaration
Swift
public var backgroundColor: InAppMessageColor? -
The dismiss button color
Declaration
Swift
public var dismissButtonColor: InAppMessageColor? -
The border radius
Declaration
Swift
public var borderRadius: Double? -
If the modal can be displayed as fullscreen on small devices
Declaration
Swift
public var allowFullscreenDisplay: Bool? -
init(heading:body: media: footer: buttons: buttonLayoutType: template: dismissButtonColor: backgroundColor: borderRadius: allowFullscreenDisplay: ) Modal in-app message model initializer
Declaration
Swift
public init( heading: InAppMessageTextInfo? = nil, body: InAppMessageTextInfo? = nil, media: InAppMessageMediaInfo? = nil, footer: InAppMessageButtonInfo? = nil, buttons: [InAppMessageButtonInfo], buttonLayoutType: InAppMessageButtonLayoutType? = nil, template: Template, dismissButtonColor: InAppMessageColor? = nil, backgroundColor: InAppMessageColor? = nil, borderRadius: Double? = nil, allowFullscreenDisplay: Bool? = nil )Parameters
headingModel defining the message heading
bodyModel defining the message body
mediaModel defining the message media
footerModel defining a footer button
buttonsMessage button models
buttonLayoutTypeLayout for buttons
templateLayout template defining relative position of heading, body and media
dismissButtonColorDismiss button color
backgroundColorBackground color
borderRadiusBorder radius of the message body
allowFullscreenDisplayFlag determining if the message can be displayed as fullscreen on small devices
View on GitHub