> For the complete documentation index, see [llms.txt](https://docs.firework.com/firework-for-developers/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.firework.com/firework-for-developers/ios-sdk/integration-guide-for-ios-sdk/customization-ios/player-deck-configurations-ios.md).

# Player deck configurations (iOS)

Here is how you can customize the player deck configurations for `PlayerDeckView/PlayerDeckSwiftUIView` instances, as illustrated in the code below.

```swift
var config = PlayerDeckContentConfiguration()

// Specifies the background color to be used for the feed background
config.backgroundColor = .white
// Specifies the corner radius to be applied to the item
config.itemView.cornerRadius = 4

// Specifies if the play icon should be hidden on the item
config.itemView.playIcon.isHidden = false
// Specifies the width of the play icon on the item
config.itemView.playIcon.iconWidth = 30

// Specifies if the sponsored label should be shown on thumbnails
config.itemView.sponsored.isHidden = false

// Specifies if autoplay is enabled on thumbnails.
config.itemView.autoplay.isEnabled = true

/// Specifies if the share button is hidden or not as well customizes the UIActivity instances it displays
config.itemView.shareButton.isHidden = false

/// Specifies the subtitle configuration
config.itemView.subtitleConfiguration.textColor = .white

// Specifies whether the one-tap Add to Cart button on product cards is hidden.
// Defaults to `true`. The button is shown only when
// `FireworkVideoSDK.shopping.playerDeckAddToCartDelegate` is also assigned.
config.itemView.addToCartButton.isHidden = false

/// Specifies the player full screen configuration
config.itemView.playerFullScreen.isEnabled = true

// Configure the background color of the ad badge.
// This is also applied to player.
config.adBadge.backgroundColor = .white
// Configure the text color of the ad badge
// This is also applied to player.
config.adBadge.textColor = .black
// Configure the text(Sponsored or Ad) of the ad badge
// This is also applied to player.
config.adBadge.badgeText = .ad

// Apply the changes for PlayerDeckView instance
let playerDeckView = PlayerDeckView()
playerDeckView.viewConfiguration = config

// Apply the changes for PlayerDeckSwiftUIView instance
PlayerDeckSwiftUIView(viewConfiguration: config)
```

{% hint style="info" %}
For the one-tap Add to Cart delegate contract, please refer to [Player Deck one-tap Add to Cart](/firework-for-developers/ios-sdk/integration-guide-for-ios-sdk/shopping-ios.md#player-deck-one-tap-add-to-cart).
{% endhint %}
