• Stars
    star
    1,074
  • Rank 43,067 (Top 0.9 %)
  • Language
    Swift
  • License
    MIT License
  • Created over 9 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Code examples for new features of watchOS 2.

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!!

Author

Shuichi Tsutsumi

iOS freelancer in Japan. Welcome works from abroad!

Special Thanks

The icon is designed by Okazu.

More Repositories

1

iOS-9-Sampler

Code examples for the new features of iOS 9.
Swift
3,448
star
2

iOS-10-Sampler

Code examples for new APIs of iOS 10.
Swift
3,320
star
3

iOS8-Sampler

Code examples for the new features of iOS 8.
Objective-C
3,159
star
4

iOS7-Sampler

Code examples for the new features of iOS 7.
Objective-C
2,939
star
5

AnimatedTransitionGallery

A gallery app of custom animated transitions for iOS.
Objective-C
2,531
star
6

PulsingHalo

iOS Component for creating a pulsing animation.
Objective-C
1,771
star
7

ARKit-Sampler

Code examples for ARKit.
Swift
1,473
star
8

Pulsator

Pulse animation for iOS
Swift
1,376
star
9

iOS-Depth-Sampler

Code examples for Depth APIs in iOS
Swift
1,113
star
10

UIActivityCollection

A collection of UIActivity providers.
Objective-C
501
star
11

SlowMotionVideoRecorder

120/240 fps SLO-MO video recorder using AVFoundation. Including convenient wrapper class.
Objective-C
486
star
12

BlockchainSwift

A simple Blockchain with Swift
Swift
361
star
13

MLModelCamera

A camera app to test .mlmodel files.
Swift
348
star
14

Stats

In-app memory usage monitoring for iOS
Objective-C
172
star
15

vImageCategory

UIImage category which have vImage wrapper functions and the demo project
Objective-C
170
star
16

ARKitBook

ARKitの実践入門書「実践ARKit」のサンプルコードです。
Swift
151
star
17

CoreImageTransition

A sample app for transition effects using Core Image, including a useful helper class.
Objective-C
141
star
18

UIKitForGame

UIKit subclasses and categories with useful animation functions for game.
Objective-C
111
star
19

FilterDemo

A catalogue of all the Core Image Filters.
Objective-C
98
star
20

DepthBook

iOSのデプス(深度)の解説書「Depth in Depth」のサンプルコードです。
Swift
55
star
21

iOSMLBook

Swift
31
star
22

TwitterArchiveViewer

A viewer app for twitter archive.
JavaScript
30
star
23

iOS-BLE-Tutorials

Step-by-step examples of Core Bluetooth written in Swift.
Swift
30
star
24

APIClientCollection-for-iOS

A collection of API clients & SDKs for iOS.
29
star
25

LinguisticTaggerSample

A sample app for Natural Language Processing using NSLinguisticTagger.
Objective-C
24
star
26

SocialAPIHelpers

Twitter and Facebook API Helper classes for iOS using Social.framework
Objective-C
20
star
27

TweenDemo

Simple app demonstrating some tween libralies.
Objective-C
19
star
28

iOS-Experiments-Contents

Table of Contents of my repo "iOS-Experiments"
17
star
29

Metal-SDF-Examples

Shape Animation Examples using SDF with MSL (Metal Shader Language)
Metal
17
star
30

CAEmitterSample

A sample app for Particle Effects using Core Animation (CAEmitterLayer and CAEmitterCell).
Objective-C
15
star
31

NYXImagesKitDemo

Objective-C
12
star
32

csv2plist

Script to convert CSV file to plist file.
PHP
11
star
33

CCTransitionHelper

cocos2d transition helper
Objective-C
11
star
34

TokyoOlympicEmblem-for-iOS

Swift
10
star
35

Remote-Video-Recorder-for-iOS

Objective-C
9
star
36

CrunchBase-API-Client-for-iOS

CrunchBase API Client for iOS.
Objective-C
7
star
37

PeripheralLogger

Logger for Core Bluetooth development.
Objective-C
6
star
38

Klout-API-Client-for-iOS

Klout API Client for iOS.
Objective-C
5
star
39

misc

Objective-C
2
star
40

echo-library

Automatically exported from code.google.com/p/echo-library
Objective-C
1
star