Porting a Swift iphone/Ipad app to tvOS

I am looking into ''porting'' an existing swift project from ios to tvOS


Anyone successfully done this yet ?


Any tips or pointers or online tuts ?



thanks

Replies

Yeah we've done it.


The approach we took was adding a tvOS target to our existing app and then moving a lot of shared code into a framework that could then be used in both the iOS and tvOS app. Most of our models and logic could be shoved in here so we didn't have to re-write grabbing things from the server.

As we're using UITableView and not UICollectionView on iOS we had to tweak a few things when porting that over but it's all fairly simple. The hardest part really will be re-working the UI and re-creating your storyboards. We're putting out a slimmed down product for the TV and will re-add features as time progresses.

Porting from iOS to tvOS is pretty simple. Really all that changes are the UIKit dialogs and the user input. The rest of the code pretty much just recompiles unless there's a lot of iPhone-iPad specific stuff in there. We're doing all games which don't use too much UIKit stuff, so it's an easy port.


-Brian