HTML

public struct HTML : Codable, Sendable, Equatable

HTML display content

  • url

    The URL

    Declaration

    Swift

    public var url: String
  • The height of the manually sized HTML view

    Declaration

    Swift

    public var height: Double?
  • The width of the manually sized HTML view

    Declaration

    Swift

    public var width: Double?
  • Flag indicating if the HTML view should lock its aspect ratio when resizing to fit the screen

    Declaration

    Swift

    public var aspectLock: Bool?
  • Flag indicating if the content requires connectivity to display correctly

    Declaration

    Swift

    public var requiresConnectivity: Bool?
  • The dismiss button color

    Declaration

    Swift

    public var dismissButtonColor: InAppMessageColor?
  • The background color

    Declaration

    Swift

    public var backgroundColor: InAppMessageColor?
  • The border radius

    Declaration

    Swift

    public var borderRadius: Double?
  • If the html can be displayed as fullscreen on small devices

    Declaration

    Swift

    public var allowFullscreen: Bool?
  • HTML in-app message model initializer

    Declaration

    Swift

    public init(
        url: String,
        height: Double? = nil,
        width: Double? = nil,
        aspectLock: Bool? = nil,
        requiresConnectivity: Bool? = nil,
        dismissButtonColor: InAppMessageColor? = nil,
        backgroundColor: InAppMessageColor? = nil,
        borderRadius: Double? = nil,
        allowFullscreen: Bool? = nil
    )

    Parameters

    url

    URL of content

    height

    Height of web view

    width

    Height of web view

    aspectLock

    Flag for locking aspect ratio

    requiresConnectivity

    Flag for determining if message can be displayed without connectivity

    dismissButtonColor

    Dismiss button color

    backgroundColor

    Background color

    borderRadius

    Border radius

    allowFullscreen

    Flag determining if the message can be displayed as fullscreen on small devices