InAppMessageTextInfo

public struct InAppMessageTextInfo : Sendable, Codable, Equatable

InAppMessage text info

  • Text styles

    Declaration

    Swift

    public enum Style : String, Sendable, Codable
  • Text alignment

    Declaration

    Swift

    public enum Alignment : String, Sendable, Codable
  • The display text

    Declaration

    Swift

    public var text: String
  • The text color

    Declaration

    Swift

    public var color: InAppMessageColor?
  • The font size

    Declaration

    Swift

    public var size: Double?
  • Font families

    Declaration

    Swift

    public var fontFamilies: [String]?
  • Alignment

    Declaration

    Swift

    public var alignment: Alignment?
  • Style

    Declaration

    Swift

    public var style: [Style]?
  • In-app message text model

    Declaration

    Swift

    public init(
        text: String,
        color: InAppMessageColor? = nil,
        size: Double? = nil, 
        fontFamilies: [String]? = nil,
        alignment: Alignment? = nil,
        style: [Style]? = nil
    )

    Parameters

    text

    Text

    color

    Color

    size

    Size

    fontFamilies

    Font families

    alignment

    Text alignment inside its own frame

    style

    Text style