⚠️ Important⚠️ This helper has been provided to give you a hand in your integration webview. It's not designed to work on every integration, it may need to be customized to suit your needs
This helper is designed to fill the HTML slot embedded in your WKWebView
The Teads Webview Helper adds a JavaScript logic (called bootstrap) into the Webview:
The HTML element is set into your web content loaded into your webview
- The bootstrap expands the
teads-slot
HTML div to the ad height - The
TeadsAdView
is injected intoWKWebView.UIScrollView.content
at theteads-slot
HTML exact position: assuring scroll fluidity - The bootstrap synchronizes the
teads-slot
vertical position with the SwiftTeadsAdView
- The bootstrap collapses
teads-slot
height to zero - The
TeadsAdView
is removed fromWKWebView
teads-slot
size remains zero
- The
TeadsAdView
position is updated accordingly