Focus on tvOS

Preview:

Citation preview

Focus on tvOS

October 13th, 2015 Séraphin Hochart - @nsphin

Where do we start? 📺

Instagram & Apple Watch

• Computers are made to be used for hours

• Phones are made to be used for minutes

• Watches are made to be used for seconds

Instagram & Apple Watch

• Computers are made to be used for hours

• Tvs are made to be used for a few hours, but browsing should be minutes

• Phones are made to be used for minutes

• Watches are made to be used for seconds

2 ways of building

• TVML

• tvOS

Example : Gammes for iOS

Things that su.. to keep in mind

💩

Xcode

Few things• No microphone access

• Bitcode only

• Universal apps. 1 price.

• Fixed screen size… for now

Local storage

• NSUserDefaults : 500kb of data max.

• What about filesystem? CoreData?

• 200Mb limit per app // TODO : to confirm

Meh“There is no persistent local storage for apps on Apple TV. This means that every app developed for the new Apple TV must be able to store data in iCloud and retrieve it in a way that provides a great customer experience”

“Yes, all local storage can be purged before the next time a user opens the app.”

- Some Apple guy on developer forums

Focus in a “cursorless” world ✏

🚫 Mistake #1 : You are not on a touch screen

🚫 Mistake #2: Diagonal navigation

🚫 Mistake #3: Don’t put your inputs too

close to each other

Space your inputs

What should we do?1. Netflix, Airbnb : 1 way navigation.

2. Space your inputs

3. Build a UI for easy focus

4. If all else fails…

Last resort : code

1. override func didUpdateFocusInContext(context: UIFocusUpdateContext, withAnimationCoordinator coordinator: UIFocusAnimationCoordinator) {

2. preferredFocusedView / nextFocusedView

3. Create UIFocusGuide()

// TODO : Attempt to do a live demo

Thanks!phin@breather.com

@nsphin

Recommended