For the complete documentation index, see llms.txt. This page is also available as Markdown.

Player deck layouts (iOS)

Horizontal layout

You can use the following code to customize configurations, such as itemSpacing, for this layout.

let layout = PlayerDeckLayout()
// Configure spacing between items
layout.itemSpacing = 16
// Configure content insets
layout.contentInsets = UIEdgeInsets(top: 10, left: 10, bottom: 10, right: 10)

let channelID = "<Encoded Channel ID>"
let playlistID = "<Encoded Playlist ID>"

// Create VideoFeedView instance
let playerDeckView = PlayerDeckView(
    layout: layout,
    source: .channelPlaylist(
        channelID: channelID,
        playlistID: playlistID
    )
)

PlayerDeckSwiftUIView(
    layout: layout,
    source: .channelPlaylist(
        channelID: channelID,
        playlistID: playlistID
    )
)

Last updated

Was this helpful?