Banner

struct Banner : Equatable

Banner in-app message theme

  • Max width

    Declaration

    Swift

    public var maxWidth: CGFloat
  • Padding

    Declaration

    Swift

    public var padding: EdgeInsets
  • Tap opacity when the banner is tappable

    Declaration

    Swift

    public var tapOpacity: CGFloat
  • Shadow theme

    Declaration

    Swift

    public var shadow: InAppMessageTheme.Shadow
  • Header theme

    Declaration

    Swift

    public var header: InAppMessageTheme.Text
  • Body theme

    Declaration

    Swift

    public var body: InAppMessageTheme.Text
  • Button theme

    Declaration

    Swift

    public var buttons: InAppMessageTheme.Button
  • Default plist file for overrides

    Declaration

    Swift

    public static let defaultPlistName: String
  • Applies a style from a plist to the theme.

    Declaration

    Swift

    public mutating func applyPlist(plistName: String, bundle: Bundle? = Bundle.main) throws

    Parameters

    plistName

    The name of the plist

    bundle

    The plist bundle.