WatchKit is an API that extends Apple's development environment for iOS applications to allow apps / notifications to extend to the Apple Watch product. WatchKit is the Objective-C and Swift framework created by Apple to allow third-party developers to create apps for the Apple Watch ecosystem.
1. Presented By :- Neha Gupta, Mindfire Solutions
Date :- 11th June 2015
Watch-Kit Development
(iWatch)
2. Content
Overview of Watch-Kit
Interaction with Apple Watch
Configure Apple Watch into Xcode
App Target Structure
Watch kit App life cycle
Apple Watch UI Controls
Apple Watch Navigation
Passing data b/w interface controllers
3. Overview of WatchKit App
WatchKit is an Apple's new framework to create applications for apple
watch.
WatchKit apps are not standalone apps, means these apps need
to be paired with iOS App.
Watch App will be an extension of iPhone Apps. The iPhone app is
responsible for installing and running watch app.
s
4. Apple Watch Models
Apple has introduced apple watch with two different size, both having
retina display.
38mm screen with 272*340 px resolution
42mm screen with 312*390 px resolution
5. Interaction with Apple Watch
Gesture
Force Touch (holding or tapping the screen for few seconds, menu
screen will be displayed)
Digital Crown
Side button
6. Configure Apple Watch into Xcode
Steps to add watch kit app target into iOS App :-
In xcode, create a new project for iOS App
Select File>New>Target>Apple Watch Section
Select WatchKit App then click next
Click Finish
8. Build and Run Process
Steps to configure custom build schemes for glance and notification :-
Select existing watch kit app scheme
Now select Edit Scheme
Duplicate existing watch app scheme
Select Run in the left column of scheme editor
In Info Tab, select watch interface
Close the scheme editor to save your changes
15. Passing Data between Interface Controllers
By pushing view controller programmatically :-
self.pushControllerWithName("PushData", context: "Data Received by
pushing interface controller")
By creating segues :-
override func contextForSegueWithIdentifier(segueIdentifier: String) ->
AnyObject?
{
return "Data Received from Segue"
}
16. Demo of layout implementation
using Groups, button and images, table and
menus
17. Limitations of Apple Watch
Multi-touch is not supported.
No access to the sensors on the Apple Watch.
Watch App has 20MB image cache, limit cannot be changed.
Watch kit Extensions cannot perform any processing after being
deactivated.
18. Reference and Demos Link
https://developer.apple.com/library/ios/documentation/General/Conceptual/Wa
tchKitProgrammingGuide/index.html
http://swiftiostutorials.com/watchkit-tutorial/
http://natashatherobot.com/watchkit-menu/
http://www.kristinathai.com/send-data-to-parent-ios-app/