25
The Zen Guide to WatchOS 2 @NatashaTheRobot

The Zen Guide to WatchOS 2

Embed Size (px)

Citation preview

The Zen Guide to WatchOS 2

@NatashaTheRobot

We join spokes together in a wheel, but it is the center hole

that makes the wagon move.

We shape clay into a pot, but it is the emptiness inside that holds whatever we want.

We hammer wood for a house, but it is the inner space that makes it livable.

We work with being, but non-being is what we use.

Redesigning the Apple Watch UI by Luke Wroblewski

–Apple Watch Programming Guide

“The personal nature of Apple Watch requires a different approach when it comes to designing

WatchKit app, glance, and notification interfaces. Your interfaces need to display

information quickly and facilitate fast navigation and interactions. Creating that

kind of interface means you should not simply port your existing iOS app behavior over to

Apple Watch. Instead, create a complementary experience to your iOS app.”

Watch Connectivity

Background Data Transfer

• application context

• application context

• user info transfer

• application context

• user info transfer

• file transfer

Interactive Messaging

• Immediate Information Transfer

• Requires reachable state

WCSession

if WCSession.isSupported() { let session = WCSession.defaultSession() session.delegate = self session.activateSession() }

import WatchConnectivity

class WatchSessionManager: NSObject, WCSessionDelegate { static let sharedManager = WatchSessionManager() private override init() { super.init() }

private let session: WCSession? = WCSession.isSupported() ? WCSession.defaultSession() : nil

func startSession() { session?.delegate = self session?.activateSession() } }

Code Sample

ResourcesWWDC 2015 Videos to Watch

★ Introducing WatchKit Connectivity

★Creating Complications with ClockKit

★Networking with NSURLSession

Blogs / Tutorials

★ KristinaThai.com

★ Ray Wenderlich

★@NatashaTheRobot