After the announcement of tvOS, Apple TV became another platform that Swift developers could build apps for, just like iPhone or Mac. tvOS is the operating system that runs on Apple TV, and it has a lot more similarities to iOS than macOS. tvOS uses the same frameworks used in iOS, making it more of an extension of an app on the TV platform.
For our Shopping List app, we will build a tvOS target, which will run on Apple TV. This app, just like the iOS version, will prompt the user to log in if they are not already logged in, and if they are, then it will take them to their shopping lists. The best part of making this tvOS app is that we will be able to use almost all from the code of our iOS app. All we need to do is configure the UI for the tvOS app in the tvOS storyboard. To see this in action, let's start building the tvOS app using the following steps:
- Open the
ShoppingList
workspace in Xcode, and select theShoppingList
iOS Project. Inside theTARGET
S
section...