Home

Awesome

watchOS-2-Sampler

Language License Twitter

Code examples for new features of watchOS 2.

<img src="ResourcesForREADME/watchos2sampler.jpg" width="242">

Requirements

How to build

Contents

Animated Properties

Animate width/height, alpha and alignments.

Table Animations

Insert and remove animations for WKInterfaceTable.

Picker Styles

WKInterfacePicker styles catalog.

<img src="ResourcesForREADME/picker.png" width="136">

Taptic Engine

Access to the Taptic engine using playHaptic method.

<img src="ResourcesForREADME/taptic.png" width="136">

Audio Rec & Play

Record and play audio.

<img src="ResourcesForREADME/rec_play.png" width="275">

Animation with Digital Crown

Coordinated Animations with WKInterfacePicker and Digital Crown.

Draw Paths (Updated by hoppenichu)

Draw paths with Core Graphics.

<img src="ResourcesForREADME/bezier.png" width="136">

Gradations (Updated by hoppenichu)

Draw gradations with Core Graphics.

<img src="ResourcesForREADME/gradation.png" width="136">

Heart Rate (Created by kitasuke)

Access to Heart Rate data using HealthKit.

<img src="ResourcesForREADME/heartrate.png" width="136">

Accelerometer

Access to Accelerometer data using CoreMotion.

<img src="ResourcesForREADME/acc.png" width="136">

Gyroscope (Not Available)

Access to Gyroscope data using CoreMotion.

These APIs are available, however CMMotionManager always returns false for gyroAvailable. So actually it's not available for now.

<img src="ResourcesForREADME/gyro.png" width="136">

Device Motion (Not Available)

Access to DeviceMotion data using CoreMotion.

These APIs are available, however CMMotionManager always returns false for deviceMotionAvailable. So actually it's not available for now.

<img src="ResourcesForREADME/devmotion.png" width="136">

Pedometer

Counting steps demo using CMPedometer.

<img src="ResourcesForREADME/pedometer.png" width="136">

Alert

Present an alert or action sheet.

<img src="ResourcesForREADME/alert.png" width="414">

Interactive Messaging

Sending message to phone and receiving from phone demo with WatchConnectivity.

<img src="ResourcesForREADME/interactive.png" width="136">

Audio File Player

Play an audio file with WKAudioFilePlayer.

<img src="ResourcesForREADME/audiofile.png" width="136">

Need to pair a Bluetooth headset on your Apple Watch.

Open System URL

Open Tel or SMS app using openSystemURL: method.

<img src="ResourcesForREADME/open.png" width="136">

Network Access (Created by KAMEDAkyosuke)

Get an image data from network using NSURLSession.

<img src="ResourcesForREADME/network.png" width="136">

Known Issues

iOS-9-Sampler

You can check the examples for iOS 9 new features on iOS-9-Sampler!!

<a href="https://github.com/shu223/iOS-9-Sampler"><img src="https://github.com/shu223/iOS-9-Sampler/blob/master/ResourcesForREADME/uistackview.gif?raw=true"></a>

Author

Shuichi Tsutsumi

iOS freelancer in Japan. Welcome works from abroad!

Special Thanks

The icon is designed by Okazu.