This article is not available in your language, so the default english version is displayed instead.

#Styles

Just as you can modify the colors and global design of Poool's paywall in the appearance tab of your Dashboard, you can also do this using code.
This front-end customization is especially useful when the SDK isn't able to retrieve the configuration used in your Dashboard.
ℹ️ These configuration values are overridden by your Dashboard configuration.

#Usage

func styles(_ styles: [String: Any], _ readOnly: Bool = false) -> Void

#Options

#layout

  • Type: String
  • Valeurs acceptées: 'portrait', 'landscape'
  • Défaut: 'portrait'
Defines the base layout of the paywall.

brand_logo

  • Type: String
  • Défaut: nil
URL to your media's logo.
.png, .jpg or .svg format, 140px min height, 200kb max.

#brand_cover

  • Type: String
  • Défaut: nil
URL to your cover image.
.png or .jpg format, 140px min width, 380px min height, 200kb max

#button_color

  • Type: String
  • Défaut: '#1896B4'
Main buttons color.

#button_hover_color

  • Type: String
  • Défaut: '#0E6176'
Main buttons hover color.

#skin_color

  • Type: String
  • Défaut: '#4A90E2'
Paywall's skin color.

#premium_color

  • Type: String
  • Défaut: '#1896B4'
Subscription color.

#custom_css

  • Type: String
  • Défaut: nil
Custom CSS added inside the paywall frame.