GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - shu223/watchOS-2-Sampler: Code examples for new features of watchOS 2.

BranchesTags
Open more actions menu

Latest commit

 

History

59 Commits
59 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
Resources
Resources
 
 
ResourcesForREADME
ResourcesForREADME
 
 
libs/PocketSVG
libs/PocketSVG
 
 
watchOS2Sampler WatchKit App
watchOS2Sampler WatchKit App
 
 
watchOS2Sampler WatchKit Extension
watchOS2Sampler WatchKit Extension
 
 
watchOS2Sampler.xcodeproj
watchOS2Sampler.xcodeproj
 
 
watchOS2Sampler
watchOS2Sampler
 
 
watchOS2SamplerTests
watchOS2SamplerTests
 
 
watchOS2SamplerUITests
watchOS2SamplerUITests
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

watchOS-2-Sampler

Language License Twitter

Code examples for new features of watchOS 2.

Requirements

  • Xcode 7
  • iOS 9 and watchOS 2

How to build

  • Change the "Team" setting on [General] for each target.
  • Enable HealthKit for the parent app and WatchKit extension target.
  • Enable App Groups for the Watch app and WatchKit extension target.
    • Edit "AudioRecAndPlayInterfaceController" with your group identifier.
  • Build & Run with Xcode 7

Contents

Animated Properties

Animate width/height, alpha and alignments.

Table Animations

Insert and remove animations for WKInterfaceTable.

Picker Styles

WKInterfacePicker styles catalog.

Taptic Engine

Access to the Taptic engine using playHaptic method.

Audio Rec & Play

Record and play audio.

Animation with Digital Crown

Coordinated Animations with WKInterfacePicker and Digital Crown.

Draw Paths (Updated by hoppenichu)

Draw paths with Core Graphics.

Gradations (Updated by hoppenichu)

Draw gradations with Core Graphics.

Heart Rate (Created by kitasuke)

Access to Heart Rate data using HealthKit.

Accelerometer

Access to Accelerometer data using CoreMotion.

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.

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.

Pedometer

Counting steps demo using CMPedometer.

Alert

Present an alert or action sheet.

Interactive Messaging

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

Audio File Player

Play an audio file with WKAudioFilePlayer.

Need to pair a Bluetooth headset on your Apple Watch.

Open System URL

Open Tel or SMS app using openSystemURL: method.

Network Access (Created by KAMEDAkyosuke)

Get an image data from network using NSURLSession.

Known Issues

  • Open System URL
    • Phone doesn't launch...
    • It's based on the Apple's document.
    • sms: works with same way. I have no idea why it doesn't work!

iOS-9-Sampler

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

  • https://github.com/shu223/iOS-9-Sampler

Author

Shuichi Tsutsumi

iOS freelancer in Japan. Welcome works from abroad!

  • PAST WORKS: My Profile Summary
  • PROFILES: LinkedIn
  • BLOGS: English / Japanese
  • CONTACTS: Twitter / Facebook

Special Thanks

The icon is designed by Okazu.

About

Code examples for new features of watchOS 2.

Topics

ioswatchos

Resources

Readme
MIT license
Activity

Stars

1.1k stars

Watchers

78 watching

Forks

136 forks
Report repository

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.