WebContentDisplayScreenlet currently supports the rendering of HTML retrieved from the portal. This HTML may be rendered using an specific template (using templateId parameter).
However, a common use case is a structured web content. In the portal that web content is rendered using an specific template, but in Screens, we want to provide an native experience, so we need to render those structured web contents in a native way.
The use is quite simple:
- Set the articleId and structureId in WebContentDisplayScreenlet.
- Create both xib and swift class for rendering that web content. It's the equivalent of the server-side template. Both xib and swift class belong to an ad-hoc theme.
- Use that theme name in the WebContentDisplayScreenlet