Guides
Docs
Examples
Support
Open Source
menu
close
Guides
Docs
Examples
Support
Open Source
Introduction
Installation
Usage
Methods
Configuration
Texts
Styles
Variables
Events
Advanced
Using with SwiftUI
#
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
Accepted values:
'portrait', 'landscape'
Default:
'portrait'
Defines the base layout of the paywall.
#
brand_logo
Type:
String
Default:
nil
URL to your media's logo.
.png, .jpg or .svg format, 140px min height, 200kb max.
#
brand_cover
Type:
String
Default:
nil
URL to your cover image.
.png or .jpg format, 140px min width, 380px min height, 200kb max
#
button_color
Type:
String
Default:
'#1896B4'
Main buttons color.
#
button_hover_color
Type:
String
Default:
'#0E6176'
Main buttons hover color.
#
skin_color
Type:
String
Default:
'#4A90E2'
Paywall's skin color.
#
premium_color
Type:
String
Default:
'#1896B4'
Subscription color.
#
custom_css
Type:
String
Default:
nil
Custom CSS added inside the paywall frame.
arrow_back
Previous
Configure texts
arrow_forward
Next
Add custom variables
Usage
Options
layout
brand_logo
brand_cover
button_color
button_hover_color
skin_color
premium_color
custom_css