Advanced Options with SwiftUI
iOS Classic - Advanced Options
This page describes Taboola advanced options using SwiftUI with Classic integration.
Multiple Taboola Units on 1 page
By default, if a given screen/page contains multiple Taboola Units, each Unit loads sequentially. This flow enables Taboola to prevent duplicate content across Units.
You can customize this default behavior at the Page level - as described below.
Parallel loading
By default, Taboola SDK uses serial loading (FetchingPolicySerial
). To adjust this default behavior, set the fetchingPolicy
property.
When loading Units in parallel, Taboola cannot guarantee unique content across Units.
After initializing TBLClassicPage
:
classicPage?.fetchingPolicy = FetchingPolicy.parallel
Possible values:
FetchingPolicySerial
- serial loading of Units (default).FetchingPolicyParallel
- parallel loading of Units.
Dark Mode
Configuring Dark Mode
Dark mode is not supported by default. For dark-mode placements, contact your Taboola Account Manager.
Once Taboola has configured your dark-mode placements, you can use the following code in your application:
classicPage?.pageExtraProperties = ["darkMode":"true"]
Switching between dark & light themes
- For dark content, set an extra property of
"darkMode":"true"
.- For light content, remove the above property.
(Do not set of a property of
"darkMode":"false"
.)
Need a hand?
Go ahead! Ask a question in our Support Forum.
Tip: Provide as much detail as possible, including your platform and SDK version.
Updated about 14 hours ago