A view that responds to focus interaction with a motion effect that's applied to all of its subviews.


class TVCardView : TVLockupView


A TVCardView object is a specialized version of TVLockupView that presents an arbitrarily composed view hierarchy in a floating content view. You add custom subviews to the contentView property, and the subviews act as a single unit in regard to selection and motion effects. You typically use a TVCardView to display ratings and reviews for a media item. The following figure shows a rating card that consists of two label views (the rating and related information) and an image view (the stars).

A darkened screen with a highlighted box in the upper left corner containing the rating for a media item.


Setting the Background Color

var cardBackgroundColor: UIColor?

The background color of the content view.

See Also

Lockup Views

class TVLockupView

A focusable view that presents main content, like a movie poster, and an optional header and footer.

class TVPosterView

A view that's optimized to display an image, a header, and a footer.

class TVMonogramView

A specialized lockup view that contains a circular image of a person or the person's initials, along with a footer view.

class TVCaptionButtonView

A button-like view that responds to user interactions.