Apple TV Docs

RockStackView

A layout element used within custom controls, to allow for custom styling.

Example Styling

<style>
    .rockStackView {
        background-color: red;
    }
</style>

Custom Styles

StyleTypeDescription
background-colorColorThe color of the background of the view.
tint-colorColorThe color of the tint of the view.
tv-interitem-spacingIntegerThe amount of spacing to include between the children.
margin4-TupleThe margin of the view. Applies the same logic as standard CSS margin, so 4 would be a valid input, as would 4,4,4,4.
widthIntegerThe width of the frame of the stack view.
border-radiusIntegerThe border radius to apply to the view.
layout-directionString  Accepted values are horizontal or vertical. Represents the layout direction of the content within.