Video Feed Layouts (iOS)
There are two concrete layout types VideoFeedHorizontalLayout and VideoFeedGridLayout. A layout can be specified at time of instantiating a let feedVC = VideoFeedViewController(layout: VideoFeedGridLayout()). Or the layout can be set later by setting the layout property of the video feed view controller; feedVC.layout = VideoFeedHorizontalLayout().
Horizontal Layout
The VideoFeedHorizontalLayout is a layout that has a single row and scrolls horizontally. The row will fill the available height.
A
VideoFeedHorizontalLayoutis best used by embedding in another view controller.

Grid Layout
The VideoFeedGridLayout is a layout that provides a vertical scrolling feed that has both columns and rows. The width of the items in the grid are calculated based on the numberOfColumns property in the VideoFeedGridLayout.

Vertical Layout
A vertical layout can be achieved by setting numberOfColumns property in the VideoFeedGridLayout as 1.

Last updated
Was this helpful?