New Ways to Work with Workouts

Size: px
Start display at page:

Download "New Ways to Work with Workouts"

Transcription

1 Session #WWDC18 New Ways to Work with Workouts 707 Niharika Bedekar, Fitness Software Engineer Karim Benhmida, Health Software Engineer 2018 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from Apple.

2

3 200 Million Health and Fitness App Store Category Downloads

4 Activity Health

5 HealthKit Activity Health

6 Agenda

7 Agenda Privacy and Authorization

8 Agenda Privacy and Authorization New Workout API

9 Agenda Privacy and Authorization New Workout API New Quantity Series API

10 Privacy and Authorization

11 Privacy and Authorization

12 Privacy and Authorization

13 Privacy and Authorization

14 Privacy and Authorization

15 Proportional Collection

16 HealthKit authorization can change

17 Privacy and Authorization Ask for Only what you need Only when you need it Every time you need it

18 Privacy and Authorization

19 Privacy and Authorization let typestoshare: Set = [ ]. HKSampleType.workoutType()

20 Privacy and Authorization let typestoshare: Set = [ HKSampleType.workoutType() ]. let typestoread: Set = [ HKQuantityType.quantityType(forIdentifier:.heartRate)!, HKQuantityType.quantityType(forIdentifier:.activeEnergyBurned)!, HKQuantityType.quantityType(forIdentifier:.distanceWalkingRunning)! ].

21 Privacy and Authorization let typestoshare: Set = [ HKSampleType.workoutType() ]. let typestoread: Set = [ HKQuantityType.quantityType(forIdentifier:.heartRate)!, HKQuantityType.quantityType(forIdentifier:.activeEnergyBurned)!, HKQuantityType.quantityType(forIdentifier:.distanceWalkingRunning)! ]. healthstore.requestauthorization(toshare: typestoshare, read: typestoread) { (success, error) in // Handle errors }.

22

23 New Workout API Karim Benhmida, Health Software Engineer

24 Workout App Lifecycle

25 Workout App Lifecycle Setup

26 Workout App Lifecycle Setup Start

27 Workout App Lifecycle Setup Start Active Workout

28 Workout App Lifecycle Setup Start Active Workout End

29 Workout App Lifecycle Setup Start Active Workout End Save

30 Workout App Lifecycle Setup Start End User Interface Save

31 Workout App Lifecycle Collect Data Setup Start User Interface End Save

32 Workout App Lifecycle Collect Data Setup Start User Interface End Save Control State

33 Workout App Lifecycle HKWorkoutSession (watchos)

34 Workout App Lifecycle HKWorkoutSession (watchos) Prepares sensors for data collection

35 Workout App Lifecycle HKWorkoutSession (watchos) Prepares sensors for data collection Allows background running

36 Workout App Lifecycle HKWorkoutSession (watchos) Prepares sensors for data collection Allows background running Controls workout state

37 Workout App Lifecycle HKWorkoutSession (watchos) Prepares sensors for data collection Allows background running Controls workout state Generates events

38 Workout App Lifecycle

39 Workout App Lifecycle Collect data generated by the device

40 Workout App Lifecycle Collect data generated by the device Save a workout

41 Collect Data NEW

42 Collect Data NEW HKWorkoutBuilder

43 Collect Data NEW HKWorkoutBuilder Creates and saves an HKWorkout

44 Collect Data NEW HKWorkoutBuilder Creates and saves an HKWorkout Add samples, events, and metadata

45 Collect Data NEW HKWorkoutBuilder Creates and saves an HKWorkout Add samples, events, and metadata

46 Collect Data NEW HKWorkoutBuilder HKLiveWorkoutBuilder Creates and saves an HKWorkout Add samples, events, and metadata

47 Collect Data NEW HKWorkoutBuilder HKLiveWorkoutBuilder Creates and saves an HKWorkout watchos only Add samples, events, and metadata

48 Collect Data NEW HKWorkoutBuilder HKLiveWorkoutBuilder Creates and saves an HKWorkout watchos only Add samples, events, and metadata Subclass of HKWorkoutBuilder

49 Collect Data NEW HKWorkoutBuilder HKLiveWorkoutBuilder Creates and saves an HKWorkout watchos only Add samples, events, and metadata Subclass of HKWorkoutBuilder Automatic sample and event collection

50 Workout App Lifecycle Collect Data Setup Start User Interface End Save Control State

51 Workout App Lifecycle Collect Data Setup Start User Interface End Save Control State

52 Setup and Start HKWorkoutBuilder NEW

53 Setup and Start HKWorkoutBuilder NEW // HKWorkoutBuilder let builder = HKWorkoutBuilder(healthStore: healthstore, configuration: workoutconfiguration, device: nil)

54 Setup and Start HKWorkoutBuilder NEW // HKWorkoutBuilder let builder = HKWorkoutBuilder(healthStore: healthstore, configuration: workoutconfiguration, // Start device: nil) builder.begincollection(withstart: Date(), completion: { (success, error) in }) // Handle error

55 Setup and Start HKLiveWorkoutBuilder (watchos) NEW

56 Setup and Start HKLiveWorkoutBuilder (watchos) NEW // Create session let session = try HKWorkoutSession(healthStore: healthstore, configuration: workoutconfiguration)

57 Setup and Start HKLiveWorkoutBuilder (watchos) NEW // Create session let session = try HKWorkoutSession(healthStore: healthstore, configuration: workoutconfiguration) // Retrieve builder let builder = session.associatedworkoutbuilder()

58 Setup and Start HKLiveWorkoutBuilder (watchos) NEW // Create session let session = try HKWorkoutSession(healthStore: healthstore, configuration: workoutconfiguration) // Retrieve builder let builder = session.associatedworkoutbuilder() // Start session and builder session.startactivity() builder.begincollection(withstart: Date(), completion: { (success, error) in }) // Handle error

59 Workout App Lifecycle Collect Data Setup Start User Interface End Save Control State

60 Workout App Lifecycle Collect Data Setup Start User Interface End Save Control State

61 Collect Data Samples NEW

62 Collect Data Samples NEW let samples: [HKSample] =... builder.add(samples) { (success, error) in } // Handle error

63 Collect Data Events NEW

64 Collect Data Events NEW let events: [HKWorkoutEvent] =... builder.addworkoutevents(events) { (success, error) in } // Handle error

65 Collect Data Metadata NEW

66 Collect Data Metadata NEW let metadata: [String: Any] =... builder.addmetadata(metadata) { (success, error) in } // Handle error

67 Collect Data HKLiveWorkoutDataSource (watchos) NEW

68 Collect Data HKLiveWorkoutDataSource (watchos) NEW Automatically collects data specific to the workout

69 Collect Data HKLiveWorkoutDataSource (watchos) NEW Automatically collects data specific to the workout Data types to collect can be customized

70 Collect Data HKLiveWorkoutDataSource (watchos) NEW

71 Collect Data HKLiveWorkoutDataSource (watchos) NEW // Create a data source let datasource = HKLiveWorkoutDataSource(healthStore: healthstore, workoutconfiguration: workoutconfiguration);

72 Collect Data HKLiveWorkoutDataSource (watchos) NEW // Create a data source let datasource = HKLiveWorkoutDataSource(healthStore: healthstore, workoutconfiguration: workoutconfiguration); // Set data source workoutbuilder.datasource = datasource

73 Collect Data HKLiveWorkoutDataSource (watchos) NEW // Create a data source let datasource = HKLiveWorkoutDataSource(healthStore: healthstore, workoutconfiguration: workoutconfiguration); // Set data source workoutbuilder.datasource = datasource // Optionally add other types let quantitytype: HKQuantityType =... let optionalpredicate: NSPredicate =... datasource.collectstatistics(for: quantitytype, predicate: optionalpredicate)

74 User Interface Update displayed statistics NEW

75 User Interface Update displayed statistics NEW //MARK: HKLiveWorkoutBuilderDelegate func workoutbuilder(_ workoutbuilder: HKLiveWorkoutBuilder, didcollectdataof collectedtypes: Set<HKSampleType>) { let heartratetype = HKQuantityType.quantityType(forIdentifier:.heartRate)! if collectedtypes.contains(heartratetype) { let updatedstatistics = workoutbuilder.statistics(for: heartratetype) updateheartratelabel(updatedstatistics) }. }.

76 User Interface Update displayed statistics NEW //MARK: HKLiveWorkoutBuilderDelegate func workoutbuilder(_ workoutbuilder: HKLiveWorkoutBuilder, didcollectdataof collectedtypes: Set<HKSampleType>) { let heartratetype = HKQuantityType.quantityType(forIdentifier:.heartRate)! if collectedtypes.contains(heartratetype) { let updatedstatistics = workoutbuilder.statistics(for: heartratetype) updateheartratelabel(updatedstatistics) }. }.

77 User Interface Update displayed statistics NEW //MARK: HKLiveWorkoutBuilderDelegate func workoutbuilder(_ workoutbuilder: HKLiveWorkoutBuilder, didcollectdataof collectedtypes: Set<HKSampleType>) { let heartratetype = HKQuantityType.quantityType(forIdentifier:.heartRate)! if collectedtypes.contains(heartratetype) { let updatedstatistics = workoutbuilder.statistics(for: heartratetype) updateheartratelabel(updatedstatistics) }. }.

78 User Interface Update displayed statistics NEW //MARK: HKLiveWorkoutBuilderDelegate func workoutbuilder(_ workoutbuilder: HKLiveWorkoutBuilder, didcollectdataof collectedtypes: Set<HKSampleType>) { let heartratetype = HKQuantityType.quantityType(forIdentifier:.heartRate)! if collectedtypes.contains(heartratetype) { let updatedstatistics = workoutbuilder.statistics(for: heartratetype) updateheartratelabel(updatedstatistics) }. }.

79 User Interface Track elapsed time NEW

80 User Interface Track elapsed time NEW //MARK: HKLiveWorkoutBuilderDelegate func workoutbuilderdidcollectevents(_ workoutbuilder: HKLiveWorkoutBuilder) { let elapsedtime = builder.elapsedtime updatetimer(with: elapsedtime) }.

81 User Interface Track elapsed time NEW //MARK: HKLiveWorkoutBuilderDelegate func workoutbuilderdidcollectevents(_ workoutbuilder: HKLiveWorkoutBuilder) { let elapsedtime = builder.elapsedtime updatetimer(with: elapsedtime) }.

82 Control State HKWorkoutSession (watchos) NEW

83 Control State HKWorkoutSession (watchos) NEW Not Started

84 Control State HKWorkoutSession (watchos) NEW Not Started Prepared

85 Control State HKWorkoutSession (watchos) NEW Not Started Prepared Running

86 Control State HKWorkoutSession (watchos) NEW Not Started Prepared Running Paused

87 Control State HKWorkoutSession (watchos) NEW Not Started Prepared Running Stopped Paused

88 Control State HKWorkoutSession (watchos) NEW Not Started Prepared Running Stopped Ended Paused

89 Control State HKWorkoutSession (watchos) NEW

90 Control State HKWorkoutSession (watchos) NEW session.prepare() session.startactivity() session.pause() session.resume() session.stopactivity() session.end()

91 Workout App Lifecycle Collect Data Setup Start User Interface End Save Control State

92 Workout App Lifecycle Collect Data Setup Start User Interface End Save Control State

93 End a Workout NEW

94 End a Workout NEW // End session session.end()

95 End a Workout NEW // End session session.end() // End builder builder.endcollection(withend: Date(), completion: { (success, error) in // Handle error })

96 Save a Workout NEW

97 Save a Workout NEW // Save builder.finishworkout { (workout, error) in // Handle error })

98 Demo Building a Workout App for Apple Watch

99 Workout Recovery (watchos) NEW

100 Workout Recovery (watchos) NEW App automatically relaunched if it crashes during a workout

101 Workout Recovery (watchos) NEW App automatically relaunched if it crashes during a workout Session and builder restored in their previous state

102 Workout Recovery (watchos) NEW App automatically relaunched if it crashes during a workout Session and builder restored in their previous state Data source must be setup again

103 Workout Recovery (watchos) NEW

104 Workout Recovery (watchos) NEW class ExtensionDelegate: NSObject, WKExtensionDelegate { func handleactiveworkoutrecovery() { let healthstore = HKHealthStore() healthstore.recoveractiveworkoutsession { (session, error) in // Handle error }1 }2 }3

105 Workout Recovery (watchos) NEW class ExtensionDelegate: NSObject, WKExtensionDelegate { func handleactiveworkoutrecovery() { let healthstore = HKHealthStore() healthstore.recoveractiveworkoutsession { (session, error) in // Handle error }1 }2 }3

106 Workout Recovery (watchos) NEW class ExtensionDelegate: NSObject, WKExtensionDelegate { func handleactiveworkoutrecovery() { let healthstore = HKHealthStore() healthstore.recoveractiveworkoutsession { (session, error) in // Handle error }1 }2 }3

107 Workout Recovery (watchos) NEW class ExtensionDelegate: NSObject, WKExtensionDelegate { func handleactiveworkoutrecovery() { let healthstore = HKHealthStore() healthstore.recoveractiveworkoutsession { (session, error) in // Handle error }1 }2 }3

108 New Quantity Series API Niharika Bedekar, Fitness Software Engineer

109

110

111 2.25m

112 2.25m 0.6m

113 2.25m 0.6m 3.1m

114 2.25m 0.6m 3.1m 1.2m

115 2.25m 0.6m 3.1m 1.2m 7.15m

116 HKCumulativeQuantitySeriesSample NEW

117 NEW HKQuantitySample HKCumulativeQuantitySeriesSample

118 Quantity Series API Use cases

119 Quantity Series API Use cases Data Visualization

120 Quantity Series API Use cases Data Visualization HKStatisticsQuery HKStatisticsCollectionQuery

121 Quantity Series API Use cases Data Visualization HKStatisticsQuery HKStatisticsCollectionQuery Data Analysis

122 Quantity Series API Use cases Data Visualization HKStatisticsQuery HKStatisticsCollectionQuery Data Analysis HKQuantitySeriesSampleQuery

123 Quantity Series API Use cases Data Visualization HKStatisticsQuery HKStatisticsCollectionQuery Data Analysis HKQuantitySeriesSampleQuery High Frequency Data Storage

124 Quantity Series API Use cases Data Visualization HKStatisticsQuery HKStatisticsCollectionQuery Data Analysis HKQuantitySeriesSampleQuery High Frequency Data Storage HKQuantitySeriesSampleBuilder

125 HKQuantitySeriesSampleQuery

126 HKQuantitySeriesSampleQuery Implementation NEW

127 HKQuantitySeriesSampleQuery Implementation NEW // Step 1: Create array to hold HKQuantity objects var quantities = [HKQuantity]()

128 HKQuantitySeriesSampleQuery Implementation NEW // Step 1: Create array to hold HKQuantity objects var quantities = [HKQuantity]() // Step 2: Initialize your query and gather data in handler let seriesquery = HKQuantitySeriesSampleQuery(quantitySample: seriessample) { (query, quantity, date, success, error) in analyzequantity(quantity: quantity) }.

129 HKQuantitySeriesSampleQuery Implementation NEW // Step 1: Create array to hold HKQuantity objects var quantities = [HKQuantity]() // Step 2: Initialize your query and gather data in handler let seriesquery = HKQuantitySeriesSampleQuery(quantitySample: seriessample) { (query, quantity, date, success, error) in analyzequantity(quantity: quantity) }. // Step 3: Execute the query self.healthstore.execute(seriesquery)

130 HKQuantitySeriesSampleBuilder

131 HKQuantitySeriesSampleBuilder Implementation NEW

132 HKQuantitySeriesSampleBuilder Implementation NEW // Step 1: Create an HKQuantitySeriesSampleBuilder let seriesbuilder = HKQuantitySeriesSampleBuilder(healthStore: healthstore, quantitytype: quantitytype, startdate: Date(), device: nil)

133 HKQuantitySeriesSampleBuilder Implementation NEW // Step 1: Create an HKQuantitySeriesSampleBuilder let seriesbuilder = HKQuantitySeriesSampleBuilder(healthStore: healthstore, quantitytype: quantitytype, startdate: Date(), device: nil) // Step 2: Insert HKQuantity objects while shouldinsert { let quantity = HKQuantity(unit:.meter(), doublevalue: lastdistance) seriesbuilder.insert(quantity) { (success, error) in // Handle errors }. }.

134 HKQuantitySeriesSampleBuilder Implementation NEW // Step 1: Create an HKQuantitySeriesSampleBuilder let seriesbuilder = HKQuantitySeriesSampleBuilder(healthStore: healthstore, quantitytype: quantitytype, startdate: Date(), device: nil) // Step 2: Insert HKQuantity objects while shouldinsert { let quantity = HKQuantity(unit:.meter(), doublevalue: lastdistance) seriesbuilder.insert(quantity) { (success, error) in // Handle errors }. }. // Step 3: Complete the series seriesbuilder.finishseries(metadata: nil) { (quantity, error) in // Handle errors }

135 Summary

136 Summary Respect User Privacy

137 Summary Respect User Privacy Quickly Build Robust Workout Apps

138 Summary Respect User Privacy Quickly Build Robust Workout Apps Save Data Efficiently

139 More Information Health and Fitness Technologies Lab Technology Lab 4 Wednesday, 1:00PM Health, Fitness, and Research Get-Together Market Terrace Wednesday, 6:15PM Accessing Health Records with HealthKit WWDC 2018

140

Getting the Most Out of HealthKit

Getting the Most Out of HealthKit App Frameworks #WWDC16 Getting the Most Out of HealthKit What s new and best practices Session 209 Matthew Salesi ios Software Engineer Joefrey Kibuule ios Software Engineer 2016 Apple Inc. All rights

More information

Building Watch Apps #WWDC15. Featured. Session 108. Neil Desai watchos Engineer

Building Watch Apps #WWDC15. Featured. Session 108. Neil Desai watchos Engineer Featured #WWDC15 Building Watch Apps Session 108 Neil Desai watchos Engineer 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from Apple. Agenda

More information

What s New in watchos

What s New in watchos Session App Frameworks #WWDC17 What s New in watchos 205 Ian Parks, watchos Engineering 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from

More information

Quick Interaction Techniques for watchos

Quick Interaction Techniques for watchos App Frameworks #WWDC16 Quick Interaction Techniques for watchos Session 211 Tom Witkin watchos Engineer Miguel Sanchez watchos Engineer 2016 Apple Inc. All rights reserved. Redistribution or public display

More information

Using and Extending the Xcode Source Editor

Using and Extending the Xcode Source Editor Developer Tools #WWDC16 Using and Extending the Xcode Source Editor Session 414 Mike Swingler Xcode Infrastructure and Editors Chris Hanson Xcode Infrastructure and Editors 2016 Apple Inc. All rights reserved.

More information

Extending Your Apps with SiriKit

Extending Your Apps with SiriKit App Frameworks #WWDC16 Extending Your Apps with SiriKit Session 225 Vineet Khosla SiriKit Engineering Diana Huang SiriKit Engineering Scott Andrus SiriKit Engineering 2016 Apple Inc. All rights reserved.

More information

What s New in HomeKit

What s New in HomeKit App Frameworks #WWDC15 What s New in HomeKit Session 210 Anush Nadathur HomeKit Engineer Naveen Kommareddi HomeKit Engineer 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted

More information

imessage Apps and Stickers, Part 2

imessage Apps and Stickers, Part 2 App Frameworks #WWDC16 imessage Apps and Stickers, Part 2 Interactive Messages Session 224 Alex Carter Messages Engineer Stephen Lottermoser Messages Engineer 2016 Apple Inc. All rights reserved. Redistribution

More information

Enhancing your apps for the next dimension of touch

Enhancing your apps for the next dimension of touch App Frameworks #WWDC16 A Peek at 3D Touch Enhancing your apps for the next dimension of touch Session 228 Tyler Fox UIKit Frameworks Engineer Peter Hajas UIKit Frameworks Engineer 2016 Apple Inc. All rights

More information

What s New in Xcode App Signing

What s New in Xcode App Signing Developer Tools #WWDC16 What s New in Xcode App Signing Developing and distributing Session 401 Joshua Pennington Tools Engineering Manager Itai Rom Tools Engineer 2016 Apple Inc. All rights reserved.

More information

Introduction to Siri Shortcuts

Introduction to Siri Shortcuts #WWDC8 Introduction to Siri Shortcuts Session 2 Ari Weinstein, Siri Willem Mattelaer, Siri 208 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission

More information

Monetize and Promote Your App with iad

Monetize and Promote Your App with iad Media #WWDC15 Monetize and Promote Your App with iad From design to launch Session 503 Carol Teng Shashank Phadke 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted without

More information

Accessibility on OS X

Accessibility on OS X Frameworks #WWDC14 Accessibility on OS X New Accessibility API Session 207 Patti Hoa Accessibility Engineer! Chris Dolan Accessibility Engineer 2014 Apple Inc. All rights reserved. Redistribution or public

More information

ios Accessibility Developing for everyone Session 201 Ian Fisch ios Accessibility

ios Accessibility Developing for everyone Session 201 Ian Fisch ios Accessibility App Frameworks #WWDC15 ios Accessibility Developing for everyone Session 201 Ian Fisch ios Accessibility 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted without written

More information

Using Grouped Notifications

Using Grouped Notifications #WWDC18 Using Grouped Notifications Session 711 Michele Campeotto, ios User Notifications 2018 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission

More information

What s New in MapKit. App Frameworks #WWDC17. Fredrik Olsson

What s New in MapKit. App Frameworks #WWDC17. Fredrik Olsson Session App Frameworks #WWDC17 What s New in MapKit 237 Fredrik Olsson 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from Apple. MKMapView.mapType.standard

More information

What s New in ARKit 2

What s New in ARKit 2 Session #WWDC18 What s New in ARKit 2 602 Arsalan Malik, ARKit Engineer Reinhard Klapfer, ARKit Engineer 2018 Apple Inc. All rights reserved. Redistribution or public display not permitted without written

More information

Touch Bar Fundamentals

Touch Bar Fundamentals Session App Frameworks #WWDC17 Touch Bar Fundamentals 211 Chris Dreessen John Tegtmeyer 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from

More information

Writing Energy Efficient Apps

Writing Energy Efficient Apps Session App Frameworks #WWDC17 Writing Energy Efficient Apps 238 Daniel Schucker, Software Power Engineer Prajakta Karandikar, Software Power Engineer 2017 Apple Inc. All rights reserved. Redistribution

More information

Data Delivery with Drag and Drop

Data Delivery with Drag and Drop Session App Frameworks #WWDC17 Data Delivery with Drag and Drop 227 Dave Rahardja, UIKit Tanu Singhal, UIKit 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted without

More information

Building for Voice with Siri Shortcuts

Building for Voice with Siri Shortcuts #WWDC18 Building for Voice with Siri Shortcuts Session 214 Amit Jain, Siri Ayaka Nonaka, Siri 2018 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission

More information

Media and Gaming Accessibility

Media and Gaming Accessibility Session System Frameworks #WWDC17 Media and Gaming Accessibility 217 Greg Hughes, Software Engineering Manager Charlotte Hill, Software Engineer 2017 Apple Inc. All rights reserved. Redistribution or public

More information

Creating Complications with ClockKit Session 209

Creating Complications with ClockKit Session 209 App Frameworks #WWDC15 Creating Complications with ClockKit Session 209 Eliza Block watchos Engineer Paul Salzman watchos Engineer 2015 Apple Inc. All rights reserved. Redistribution or public display

More information

Building Apps with Dynamic Type

Building Apps with Dynamic Type Session App Frameworks #WWDC17 Building Apps with Dynamic Type 245 Clare Kasemset, Software Engineering Manager Nandini Sundar, Software Engineer 2017 Apple Inc. All rights reserved. Redistribution or

More information

WatchKit In-Depth, Part 2

WatchKit In-Depth, Part 2 App Frameworks #WWDC15 WatchKit In-Depth, Part 2 Session 208 Nathan de Vries watchos Engineer Chloe Chang watchos Engineer 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted

More information

What s New in imessage Apps

What s New in imessage Apps Session App Frameworks #WWDC17 What s New in imessage Apps 234 Eugene Bistolas, Messages Engineer Jay Chae, Messages Engineer Stephen Lottermoser, Messages Engineer 2017 Apple Inc. All rights reserved.

More information

Introducing Password AutoFill for Apps

Introducing Password AutoFill for Apps Session App Frameworks #WWDC17 Introducing Password AutoFill for Apps Reducing friction for your users 206 Ricky Mondello, ios Engineer 2017 Apple Inc. All rights reserved. Redistribution or public display

More information

Mastering UIKit on tvos

Mastering UIKit on tvos App Frameworks #WWDC16 Mastering UIKit on tvos Session 210 Justin Voss UIKit Engineer 2016 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from

More information

Creating Audio Apps for watchos

Creating Audio Apps for watchos Session #WWDC18 Creating Audio Apps for watchos 504 Neil Desai, watchos Frameworks Engineer 2018 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission

More information

Mastering Drag and Drop

Mastering Drag and Drop Session App Frameworks #WWDC17 Mastering Drag and Drop 213 Tom Adriaenssen, UIKit Wenson Hsieh, WebKit Robb Böhnke, UIKit 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted

More information

What s New in tvos 12

What s New in tvos 12 #WWDC18 What s New in tvos 12 Session 208 Hans Kim, tvos Engineering 2018 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from Apple. Agenda Agenda

More information

Thread Sanitizer and Static Analysis

Thread Sanitizer and Static Analysis Developer Tools #WWDC16 Thread Sanitizer and Static Analysis Help with finding bugs in your code Session 412 Anna Zaks Manager, Program Analysis Team Devin Coughlin Engineer, Program Analysis Team 2016

More information

Implementing UI Designs in Interface Builder

Implementing UI Designs in Interface Builder Developer Tools #WWDC15 Implementing UI Designs in Interface Builder Session 407 Kevin Cathey Interface Builder Engineer Tony Ricciardi Interface Builder Engineer 2015 Apple Inc. All rights reserved. Redistribution

More information

Getting Started with CareKit

Getting Started with CareKit App Frameworks #WWDC16 Getting Started with CareKit Session 237 Umer Khan Software Engineer 2016 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission

More information

Introducing the Contacts Framework

Introducing the Contacts Framework App Frameworks #WWDC15 Introducing the Contacts Framework For OS X, ios, and watchos Session 223 Bruce Stadnyk ios Contacts Engineer Dave Dribin OS X Contacts Engineer Julien Robert ios Contacts Engineer

More information

Accessibility on ios. Developing for everyone. Frameworks #WWDC14. Session 210 Clare Kasemset ios Accessibility

Accessibility on ios. Developing for everyone. Frameworks #WWDC14. Session 210 Clare Kasemset ios Accessibility Frameworks #WWDC14 Accessibility on ios Developing for everyone Session 210 Clare Kasemset ios Accessibility 2014 Apple Inc. All rights reserved. Redistribution or public display not permitted without

More information

Enabling Your App for CarPlay

Enabling Your App for CarPlay Session App Frameworks #WWDC17 Enabling Your App for CarPlay 719 Albert Wan, CarPlay Engineering 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission

More information

Modern User Interaction on ios

Modern User Interaction on ios App Frameworks #WWDC17 Modern User Interaction on ios Mastering the UIKit UIGesture System Session 219 Dominik Wagner, UIKit Engineer Michael Turner, UIKit Engineer Glen Low, UIKit Engineer 2017 Apple

More information

Managing Documents In Your ios Apps

Managing Documents In Your ios Apps Session #WWDC18 Managing Documents In Your ios Apps 216 Brandon Tennant, Software Engineer Thomas Deniau, Software Engineer Rony Fadel, Software Engineer 2018 Apple Inc. All rights reserved. Redistribution

More information

What s New in Core Bluetooth

What s New in Core Bluetooth Session System Frameworks #WWDC17 What s New in Core Bluetooth 712 Craig Dooley, Bluetooth Engineer Duy Phan, Bluetooth Engineer 2017 Apple Inc. All rights reserved. Redistribution or public display not

More information

What s New in Notifications

What s New in Notifications System Frameworks #WWDC15 What s New in Notifications Session 720 Michele Campeotto ios Notifications Gokul Thirumalai Apple Push Notification Service 2015 Apple Inc. All rights reserved. Redistribution

More information

What s New in CloudKit

What s New in CloudKit System Frameworks #WWDC15 What s New in CloudKit Session 704 Olivier Bonnet icloud Client Eric Krugler icloud Server 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted

More information

Designing for Apple Watch

Designing for Apple Watch Design #WWDC15 Designing for Apple Watch Session 802 Mike Stern User Experience Evangelist 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission

More information

What's New in Core Spotlight

What's New in Core Spotlight Session System Frameworks #WWDC17 What's New in Core Spotlight Search on macos and ios 231 John Hörnkvist, Spotlight Lyn Fong, Spotlight 2017 Apple Inc. All rights reserved. Redistribution or public display

More information

Seamless Linking to Your App

Seamless Linking to Your App App Frameworks #WWDC15 Seamless Linking to Your App Session 509 Conrad Shultz Safari and WebKit Software Engineer Jonathan Grynspan Core Services Software Engineer 2015 Apple Inc. All rights reserved.

More information

New UIKit Support for International User Interfaces

New UIKit Support for International User Interfaces App Frameworks #WWDC15 New UIKit Support for International User Interfaces Session 222 Sara Radi Internationalization Software Engineer Aaltan Ahmad Internationalization Software Engineer Paul Borokhov

More information

Automatic Strong Passwords and Security Code AutoFill

Automatic Strong Passwords and Security Code AutoFill Session #WWDC18 Automatic Strong Passwords and Security Code AutoFill 204 Chelsea Pugh, ios Engineer Reza Abbasian, ios Engineer Harris Papadopoulos, ios Engineer 2018 Apple Inc. All rights reserved. Redistribution

More information

CarPlay Audio and Navigation Apps

CarPlay Audio and Navigation Apps #WWDC18 CarPlay Audio and Navigation Apps Tunes and turns Jonathan Hersh, ios Car Experience Albert Wan, ios Car Experience Mike Knippers, ios Car Experience 2018 Apple Inc. All rights reserved. Redistribution

More information

Introducing CloudKit. A how-to guide for icloud for your Apps. Frameworks #WWDC14. Session 208 Olivier Bonnet CloudKit Client Software

Introducing CloudKit. A how-to guide for icloud for your Apps. Frameworks #WWDC14. Session 208 Olivier Bonnet CloudKit Client Software Frameworks #WWDC14 Introducing CloudKit A how-to guide for icloud for your Apps Session 208 Olivier Bonnet CloudKit Client Software 2014 Apple Inc. All rights reserved. Redistribution or public display

More information

What s New in SpriteKit

What s New in SpriteKit Graphics and Games #WWDC16 What s New in SpriteKit Session 610 Ross Dexter Games Technologies Engineer Clément Boissière Games Technologies Engineer 2016 Apple Inc. All rights reserved. Redistribution

More information

Designing Great Apple Watch Experiences

Designing Great Apple Watch Experiences Design #WWDC16 Designing Great Apple Watch Experiences Session 804 Mike Stern User Experience Evangelist 2016 Apple Inc. All rights reserved. Redistribution or public display not permitted without written

More information

Localizing with Xcode 6

Localizing with Xcode 6 Tools #WWDC14 Localizing with Xcode 6 Best practices and new workflows Session 412 Zoltan Foley-Fisher Xcode Software Engineer! Chris Hanson Xcode Software Engineer 2014 Apple Inc. All rights reserved.

More information

What s New in Testing

What s New in Testing #WWDC18 What s New in Testing Session 403 Honza Dvorsky, Xcode Engineer Ethan Vaughan, Xcode Engineer 2018 Apple Inc. All rights reserved. Redistribution or public display not permitted without written

More information

AVContentKeySession Best Practices

AVContentKeySession Best Practices Session #WWDC18 AVContentKeySession Best Practices 507 Anil Katti, AVFoundation Engineer 2018 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from

More information

Vision Framework. Building on Core ML. Media #WWDC17. Brett Keating, Apple Manager Frank Doepke, He who wires things together

Vision Framework. Building on Core ML. Media #WWDC17. Brett Keating, Apple Manager Frank Doepke, He who wires things together Session Media #WWDC17 Vision Framework Building on Core ML 506 Brett Keating, Apple Manager Frank Doepke, He who wires things together 2017 Apple Inc. All rights reserved. Redistribution or public display

More information

Introducing On Demand Resources

Introducing On Demand Resources App Frameworks #WWDC15 Introducing On Demand Resources An element of App Thinning Session 214 Steve Lewallen Frameworks Engineering Tony Parker Cocoa Frameworks 2015 Apple Inc. All rights reserved. Redistribution

More information

What s New in Core Data?

What s New in Core Data? Session App Frameworks #WWDC17 What s New in Core? Persisting since 2004 210 Melissa Turner, Core Engineer Rishi Verma, Core Engineer 2017 Apple Inc. All rights reserved. Redistribution or public display

More information

What s New in NSCollectionView Session 225

What s New in NSCollectionView Session 225 App Frameworks #WWDC15 What s New in NSCollectionView Session 225 Troy Stephens Application Frameworks Engineer 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted without

More information

Introducing SiriKit. Hey Siri, say hello to apps #WWDC16. App Frameworks. Session 217

Introducing SiriKit. Hey Siri, say hello to apps #WWDC16. App Frameworks. Session 217 App Frameworks #WWDC16 Introducing SiriKit Hey Siri, say hello to apps Session 217 Robby Walker SiriKit Engineering Brandon Newendorp SiriKit Engineering Corey Peterson SiriKit Design 2016 Apple Inc. All

More information

Optimizing Swift Performance Session 409

Optimizing Swift Performance Session 409 Developer Tools #WWDC15 Optimizing Swift Performance Session 409 Nadav Rotem Manager, Swift Performance Team Michael Gottesman Engineer, Swift Performance Team Joe Grzywacz Engineer, Performance Tools

More information

Localizing with Xcode 9

Localizing with Xcode 9 Session Developer Tools #WWDC17 Localizing with Xcode 9 401 Sara Radi, Software Engineer Aya Siblini, Software Engineer Chris Hanson, Software Engineer 2017 Apple Inc. All rights reserved. Redistribution

More information

What s New in tvos #WWDC16. App Frameworks. Session 206. Hans Kim tvos Engineer

What s New in tvos #WWDC16. App Frameworks. Session 206. Hans Kim tvos Engineer App Frameworks #WWDC16 What s New in tvos Session 206 Hans Kim tvos Engineer 2016 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from Apple. Welcome

More information

Building Visually Rich User Experiences

Building Visually Rich User Experiences Session App Frameworks #WWDC17 Building Visually Rich User Experiences 235 Noah Witherspoon, Software Engineer Warren Moore, Software Engineer 2017 Apple Inc. All rights reserved. Redistribution or public

More information

Introducing MusicKit. Media #WWDC17. Tim Parthemore, MusicKit Services Joel Lopes Da Silva, ios Music

Introducing MusicKit. Media #WWDC17. Tim Parthemore, MusicKit Services Joel Lopes Da Silva, ios Music Session Media #WWDC17 Introducing MusicKit 502 Tim Parthemore, MusicKit Services Joel Lopes Da Silva, ios Music 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted without

More information

Advances in AVFoundation Playback

Advances in AVFoundation Playback Media #WWDC16 Advances in AVFoundation Playback Waiting, looping, switching, widening, optimizing Session 503 Sam Bushell Media Systems Architect 2016 Apple Inc. All rights reserved. Redistribution or

More information

Core ML in Depth. System Frameworks #WWDC17. Krishna Sridhar, Core ML Zach Nation, Core ML

Core ML in Depth. System Frameworks #WWDC17. Krishna Sridhar, Core ML Zach Nation, Core ML System Frameworks #WWDC17 Core ML in Depth Krishna Sridhar, Core ML Zach Nation, Core ML 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from

More information

Cocoa Touch Best Practices

Cocoa Touch Best Practices App Frameworks #WWDC15 Cocoa Touch Best Practices Session 231 Luke Hiesterman UIKit Engineer 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission

More information

Getting Published in Apple News

Getting Published in Apple News Media #WWDC16 Getting Published in Apple News Session 502 Ryan Griggs Apple News 2016 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from Apple.

More information

Introducing the Modern WebKit API

Introducing the Modern WebKit API Frameworks #WWDC14 Introducing the Modern WebKit API Session 206 Anders Carlsson Safari and WebKit Engineer 2014 Apple Inc. All rights reserved. Redistribution or public display not permitted without written

More information

JavaScript for Automation

JavaScript for Automation Services #WWDC14 JavaScript for Automation Session 306 Sal Soghoian Product Manger Automation Technologies 2014 Apple Inc. All rights reserved. Redistribution or public display not permitted without written

More information

Advanced Notifications

Advanced Notifications System Frameworks #WWDC16 Advanced Notifications Session 708 Michele Campeotto ios Notifications 2016 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission

More information

Introducing Swift Playgrounds

Introducing Swift Playgrounds Developer Tools #WWDC16 Introducing Swift Playgrounds Exploring with Swift on ipad Session 408 Matt Patenaude Playgrounds Engineer Maxwell Swadling Playgrounds Engineer Jonathan Penn Playgrounds Engineer

More information

Improving your Existing Apps with Swift

Improving your Existing Apps with Swift Developer Tools #WWDC15 Improving your Existing Apps with Swift Getting Swifty with It Session 403 Woody L. in the Sea of Swift 2015 Apple Inc. All rights reserved. Redistribution or public display not

More information

Advanced Scrollviews and Touch Handling Techniques

Advanced Scrollviews and Touch Handling Techniques Frameworks #WWDC14 Advanced Scrollviews and Touch Handling Techniques Session 235 Josh Shaffer ios Apps and Frameworks Engineer Eliza Block ios Apps and Frameworks Engineer 2014 Apple Inc. All rights reserved.

More information

What s New in SiriKit

What s New in SiriKit Session App Frameworks #WWDC17 What s New in SiriKit 214 Sirisha Yerroju, SiriKit Engineer Tin Tran, SiriKit Engineer 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted

More information

What's New in UIKit Dynamics and Visual Effects Session 229

What's New in UIKit Dynamics and Visual Effects Session 229 App Frameworks #WWDC15 What's New in UIKit Dynamics and Visual Effects Session 229 Michael Turner UIKit Engineer David Duncan UIKit Engineer 2015 Apple Inc. All rights reserved. Redistribution or public

More information

Building Faster in Xcode

Building Faster in Xcode #WWDC18 Building Faster in Xcode Session 408 David Owens, Xcode Engineer Jordan Rose, Swift Engineer 2018 Apple Inc. All rights reserved. Redistribution or public display not permitted without written

More information

Session id: The Self-Managing Database: Guided Application and SQL Tuning

Session id: The Self-Managing Database: Guided Application and SQL Tuning Session id: 40713 The Self-Managing Database: Guided Application and SQL Tuning Lead Architects Benoit Dageville Khaled Yagoub Mohamed Zait Mohamed Ziauddin Agenda SQL Tuning Challenges Automatic SQL Tuning

More information

Apple Watch + Ski Tracks START YOU SKI ADVENTURE

Apple Watch + Ski Tracks START YOU SKI ADVENTURE Apple Watch + Ski Tracks START YOU SKI ADVENTURE Get the most out of your Apple Watch on the mountain. 2.0.1 Introduction The Apple Watch is an advanced wearable device that is fully supported by Ski Tracks

More information

Your Apps and the Future of macos Security

Your Apps and the Future of macos Security #WWDC18 Your Apps and the Future of macos Security Pierre-Olivier Martel, Security Engineering Manager Kelly Yancey, OS Security Garrett Jacobson, Trusted Execution 2018 Apple Inc. All rights reserved.

More information

Advances in TVMLKit. App Frameworks #WWDC17. Trevor Cortez, Localization Engineer Parry Panesar, tvos Engineer Jeremy Foo, tvos Engineer

Advances in TVMLKit. App Frameworks #WWDC17. Trevor Cortez, Localization Engineer Parry Panesar, tvos Engineer Jeremy Foo, tvos Engineer Session App Frameworks #WWDC17 Advances in TVMLKit 202 Trevor Cortez, Localization Engineer Parry Panesar, tvos Engineer Jeremy Foo, tvos Engineer 2017 Apple Inc. All rights reserved. Redistribution or

More information

Leveraging Touch Input on ios

Leveraging Touch Input on ios App Frameworks #WWDC16 Leveraging Touch Input on ios And getting the most out of Apple Pencil Session 220 Dominik Wagner UIKit Engineer 2016 Apple Inc. All rights reserved. Redistribution or public display

More information

What s New in Cocoa for macos

What s New in Cocoa for macos Session #WWDC18 What s New in Cocoa for macos 209 Ali Ozer, Cocoa Frameworks Chris Dreessen, Cocoa Frameworks Jesse Donaldson, Cocoa Frameworks 2018 Apple Inc. All rights reserved. Redistribution or public

More information

Integrating Apps and Content with AR Quick Look

Integrating Apps and Content with AR Quick Look Session #WWDC18 Integrating Apps and Content with AR Quick Look 603 David Lui, ARKit Engineering Dave Addey, ARKit Engineering 2018 Apple Inc. All rights reserved. Redistribution or public display not

More information

CloudKit Tips And Tricks

CloudKit Tips And Tricks System Frameworks #WWDC15 CloudKit Tips And Tricks Session 715 Nihar Sharma CloudKit Engineer 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission

More information

Core Data Best Practices

Core Data Best Practices #WWDC18 Core Data Best Practices Session 224 Scott Perry, Engineer Nick Gillett, Engineer 2018 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission

More information

Understanding Undefined Behavior

Understanding Undefined Behavior Session Developer Tools #WWDC17 Understanding Undefined Behavior 407 Fred Riss, Clang Team Ryan Govostes, Security Engineering and Architecture Team Anna Zaks, Program Analysis Team 2017 Apple Inc. All

More information

Mysteries of Auto Layout, Part 1

Mysteries of Auto Layout, Part 1 App Frameworks #WWDC15 Mysteries of Auto Layout, Part 1 Session 218 Jason Yao Interface Builder Engineer Kasia Wawer ios Keyboards Engineer 2015 Apple Inc. All rights reserved. Redistribution or public

More information

Using Accelerate and simd

Using Accelerate and simd Session #WWDC18 Using Accelerate and simd 701 Matthew Badin, CoreOS, Vector and Numerics Luke Chang, CoreOS, Vector and Numerics 2018 Apple Inc. All rights reserved. Redistribution or public display not

More information

App Extension Best Practices

App Extension Best Practices App Frameworks #WWDC15 App Extension Best Practices Session 224 Sophia Teutschler UIKit Engineer Ian Baird CoreOS Engineer 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted

More information

What s New in Audio. Media #WWDC17. Akshatha Nagesh, AudioEngine-eer Béla Balázs, Audio Artisan Torrey Holbrook Walker, Audio/MIDI Black Ops

What s New in Audio. Media #WWDC17. Akshatha Nagesh, AudioEngine-eer Béla Balázs, Audio Artisan Torrey Holbrook Walker, Audio/MIDI Black Ops Session Media #WWDC17 What s New in Audio 501 Akshatha Nagesh, AudioEngine-eer Béla Balázs, Audio Artisan Torrey Holbrook Walker, Audio/MIDI Black Ops 2017 Apple Inc. All rights reserved. Redistribution

More information

INTRODUCTION TO ARCHITECTING YOUR IOS APP

INTRODUCTION TO ARCHITECTING YOUR IOS APP INTRODUCTION TO ARCHITECTING YOUR IOS APP AGENDA Goals of software architecture Design guidelines Practical tips GOALS OF SOFTWARE ARCHITECTURE GOALS OF SOFTWARE ARCHITECTURE Code is comprehensible for

More information

Engineering for Testability

Engineering for Testability Session Developer Tools #WWDC17 Engineering for Testability 414 Brian Croom, Xcode Engineer Greg Tracy, Xcode Engineer 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted

More information

Deploying AirPrint in Enterprise

Deploying AirPrint in Enterprise System Frameworks #WWDC16 Deploying AirPrint in Enterprise Session 725 Todd Ritland AirPrint Engineer 2016 Apple Inc. All rights reserved. Redistribution or public display not permitted without written

More information

Finding Bugs Using Xcode Runtime Tools

Finding Bugs Using Xcode Runtime Tools Session Developer Tools #WWDC17 Finding Bugs Using Xcode Runtime Tools 406 Kuba Mracek, Program Analysis Engineer Vedant Kumar, Compiler Engineer 2017 Apple Inc. All rights reserved. Redistribution or

More information

Crestron Integration: Haivision Video Platform

Crestron Integration: Haivision Video Platform Crestron Integration: Haivision Video Platform Haivision is a member of Crestron s Integrated Partner program, which enables the world's leading products to run seamlessly in a Crestron systems environment.

More information

Apple Watch Design Tips and Tricks

Apple Watch Design Tips and Tricks Design #WWDC15 Apple Watch Design Tips and Tricks Session 805 Mike Stern User Experience Evangelist Rachel Roth User Experience Evangelist 2015 Apple Inc. All rights reserved. Redistribution or public

More information

Google Cloud Platform for Systems Operations Professionals (CPO200) Course Agenda

Google Cloud Platform for Systems Operations Professionals (CPO200) Course Agenda Google Cloud Platform for Systems Operations Professionals (CPO200) Course Agenda Module 1: Google Cloud Platform Projects Identify project resources and quotas Explain the purpose of Google Cloud Resource

More information

itunes Connect Development to distribution #WWDC15 Distribution Session 304

itunes Connect Development to distribution #WWDC15 Distribution Session 304 Distribution #WWDC15 itunes Connect Development to distribution Session 304 Paul Turner Senior Engineering Operations Manager, itunes Digital Supply Chain 2015 Apple Inc. All rights reserved. Redistribution

More information

What s New in TVMLKit

What s New in TVMLKit #WWDC18 What s New in TVMLKit Session 238 Jeremy Foo, tvos Engineering 2018 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from Apple. Web Inspector

More information