Skip to main content

(Optional) Infinite Widgets On Page

Support Infinite Widgets On The Same Page

warning

This support was added on iOS SDK 4.32.0

Background

Some publishers want to integrate an infinite number of Bridge widgets on their CollectionView or TableView feed. Each widget contains a single recommendation. They had a problem initially because according to our guidelines we ask the developer to init() all the widgets of the page in the viewDidLoad method which can't be done if the number of widgets is dynamic.

How to integrate

In order to work with SFWidget in this "infinite instances mode" - the developer should configure this static param BEFORE** initilizing the first widget on the page:

SFWidget.setInfiniteWidgetsOnTheSamePage(true)