# shu223/watchOS-2-Sampler

Code examples for new features of watchOS 2.

Repository: https://github.com/shu223/watchOS-2-Sampler
Canonical: https://ross.abutalabs.com/products/watchos-2-sampler
Language: Swift
License: MIT
License Family: permissive
Topics: ios, watchos
Last push: 2021-11-22T10:55:28+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4102, "days_push": 1745, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1075, forks 138 (observed 2026-08-28T04:03:29.150970+00:00)

## What it is
A sampler of Swift code examples demonstrating the new APIs and features introduced in watchOS 2, covering areas like WatchKit animations, the Taptic Engine, Digital Crown interactions, HealthKit heart rate data, and CoreMotion sensors. It is a runnable educational demo collection built around Xcode 7 and iOS 9 / watchOS 2 rather than a library or reusable package.

## Use cases
- learn watchOS 2 APIs with example code
- sample code for WatchKit table and picker animations
- how to play haptic feedback via the Taptic Engine on Apple Watch
- read heart rate data with HealthKit on watchOS
- access accelerometer and pedometer data with CoreMotion on Apple Watch
- coordinated animations with the Digital Crown example
- record and play audio on Apple Watch example

## When to choose
- You want runnable Swift demos to learn watchOS 2 / WatchKit APIs like Taptic, Digital Crown, or CoreMotion
- You need copy-paste reference code for watch UI animations, pickers, tables, or HealthKit heart rate
- You are studying older watchOS development or maintaining a legacy watch app from that era

## When to avoid
- You are building for current watchOS versions - the samples target Xcode 7 and watchOS 2
- You need a maintained library or framework to embed in production, since this is example code only
- You need sensors shown as unavailable in the samples, such as gyroscope or device motion access

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: animation, ui-components, audio-processing, developer-tools
- domain: mobile-development, apple-ecosystem, education, tutorials
- platform: -
- tags: watchos, watchkit, apple-watch, sample-code, code-examples, healthkit, coremotion, taptic-engine, digital-crown, swift-demos, ios, mobile, swift

## Member repositories
- shu223/watchOS-2-Sampler (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:29.150970+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:53:28.144993+00:00, confidence not recorded.
  - readme: https://github.com/shu223/watchOS-2-Sampler (fetched 2026-08-28T04:03:29.150970+00:00, sha 7420d39b068e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
