These are the steps for creating a new tvOS application:
Open XCode ➔ Go to File ➔ New ➔ Project
Select ‘App’ in tvOS tab & click Next
Provide application name & bundle identifier
Choose Interface ➔ Storyboard & Lifecycle ➔ UIKit App Delegate and click Next
Select the correct application target & simulator and hit Run.
Currently the screen is shown black since there are no UI elements added on it.
Press Command + Shift + R to show/hide remote
- Hold Option key and hover top part of the virtual remote to navigate app.
- Click the top part of the remote to tap/select any UI element.
Note: tvOS applications can co-exist within an iOS project in a different target and both targets can share common files given that these are not using any framework which is not available in both targets.
Let’s continue and learn how to create a tab bar in next tutorial