Instance Method


Returns a view for a view element.


optional func makeView(element: TVViewElement, existingView: UIView?) -> UIView?



The view element requesting a new view.


The current view.

Return Value

The new view associated with the view element. If the app doesn’t handle the event, you must return nil.


When possible, update the view contained in the existingView parameter instead of creating a new view. However, if the existing view is an instance of UICollectionViewCell, you must configure the cell instead of creating a new instance.

See Also

Updating View Information

func collectionViewCellClass(for: TVViewElement) -> AnyClass?

Returns a collection view cell for the specified element.

func playerViewController(for: TVPlayer) -> UIViewController?

Returns the custom player user interface for a custom player.