HTML
public struct HTML : Codable, Sendable, Equatable
HTML display content
-
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? -
init(url:height: width: aspectLock: requiresConnectivity: dismissButtonColor: backgroundColor: borderRadius: allowFullscreen: forceFullscreen: ) 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, forceFullscreen: Bool? = nil )Parameters
urlURL of content
heightHeight of web view
widthHeight of web view
aspectLockFlag for locking aspect ratio
requiresConnectivityFlag for determining if message can be displayed without connectivity
dismissButtonColorDismiss button color
backgroundColorBackground color
borderRadiusBorder radius
allowFullscreenFlag determining if the message can be displayed as fullscreen on small devices
View on GitHub