Sample Code

Mapping Apple TV Users to App Profiles

Adapt the content of your app for the current viewer by using TV user manager.



Note: This sample code project is associated with WWDC 2019 session 211: Mastering the Living Room With tvOS.

Configure the Sample Code Project

Before you run the sample code project in Xcode:

  • In order to switch between TV users you’ll need to add users, one way to do it is to go to Settings / Users and Accounts / Add New User…

  • You can switch TV users by long pressing the TV Button, or in Settings / Users and Accounts

See Also

Multiple User Login

class TVUserManager

An object for mapping Apple TV user accounts to app-specific user preferences.

class TVAppProfileDescriptor

A model object that you use to represent an app-specific profile.