Top Banner
The Zen Guide to WatchOS 2 @NatashaTheRobot
25

The Zen Guide to WatchOS 2

Apr 13, 2017

Download

Technology

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: The Zen Guide to WatchOS 2

The Zen Guide to WatchOS 2

@NatashaTheRobot

Page 2: The Zen Guide to WatchOS 2
Page 3: The Zen Guide to WatchOS 2

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

that makes the wagon move.

Page 4: The Zen Guide to WatchOS 2

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

Page 5: The Zen Guide to WatchOS 2

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

Page 6: The Zen Guide to WatchOS 2

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

Page 7: The Zen Guide to WatchOS 2
Page 8: The Zen Guide to WatchOS 2
Page 9: The Zen Guide to WatchOS 2

Redesigning the Apple Watch UI by Luke Wroblewski

Page 10: The Zen Guide to WatchOS 2
Page 11: The Zen Guide to WatchOS 2

–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.”

Page 12: The Zen Guide to WatchOS 2

Watch Connectivity

Page 13: The Zen Guide to WatchOS 2

Background Data Transfer

Page 14: The Zen Guide to WatchOS 2

• application context

Page 15: The Zen Guide to WatchOS 2

• application context

• user info transfer

Page 16: The Zen Guide to WatchOS 2

• application context

• user info transfer

• file transfer

Page 17: The Zen Guide to WatchOS 2

Interactive Messaging

Page 18: The Zen Guide to WatchOS 2

• Immediate Information Transfer

• Requires reachable state

Page 19: The Zen Guide to WatchOS 2

WCSession

Page 20: The Zen Guide to WatchOS 2

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

Page 21: The Zen Guide to WatchOS 2

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() } }

Page 22: The Zen Guide to WatchOS 2
Page 23: The Zen Guide to WatchOS 2

Code Sample

Page 24: The Zen Guide to WatchOS 2

ResourcesWWDC 2015 Videos to Watch

★ Introducing WatchKit Connectivity

★Creating Complications with ClockKit

★Networking with NSURLSession

Blogs / Tutorials

★ KristinaThai.com

★ Ray Wenderlich

★@NatashaTheRobot

Page 25: The Zen Guide to WatchOS 2