Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. watchOS
  3. watchOS-2-Sampler

watchOS-2-Sampler

MITSwift

A collection of Swift code examples demonstrating new watchOS 2 features like Taptic Engine, HealthKit, and animations.

GitHubGitHub
1.1k stars139 forks0 contributors

What is watchOS-2-Sampler?

watchOS-2-Sampler is an open-source Swift project that provides code examples for the new features introduced in watchOS 2. It demonstrates how to implement functionalities like Taptic Engine haptics, HealthKit data access, audio recording, and interactive messaging between Apple Watch and iPhone. The project serves as a practical reference for developers building apps for watchOS 2.

Target Audience

iOS and watchOS developers who are transitioning to watchOS 2 and need concrete examples to implement its new APIs. It's particularly useful for those building health, fitness, or media-rich Apple Watch applications.

Value Proposition

Developers choose this project because it offers a curated, runnable collection of watchOS 2 examples in one place, saving time compared to searching through scattered documentation. It provides clear, practical implementations of complex features like sensor data access and WatchConnectivity.

Overview

Code examples for new features of watchOS 2.

Use Cases

Best For

  • Learning how to integrate HealthKit for heart rate monitoring on Apple Watch
  • Implementing haptic feedback using the Taptic Engine in watchOS apps
  • Adding audio recording and playback functionality to watchOS applications
  • Creating animations and interactive UI components with watchOS 2 APIs
  • Building communication between Apple Watch and iPhone using WatchConnectivity
  • Accessing sensor data like accelerometer and pedometer from Apple Watch

Not Ideal For

  • Projects targeting watchOS 3 or later, as the examples are locked to watchOS 2 APIs that may be deprecated.
  • Developers seeking a polished, production-ready codebase with error handling and best practices, since this is a collection of minimal snippets.
  • Teams needing extensive written tutorials or documentation, as the project relies on code examples with brief README descriptions.
  • Apps requiring support for the latest Xcode versions or Swift syntax, due to its dependency on Xcode 7 and older Swift toolchains.

Pros & Cons

Pros

Broad Feature Coverage

Covers key watchOS 2 APIs like Taptic Engine haptics, HealthKit heart rate access, and Core Graphics drawing, as listed in the README's contents section.

Hands-On Runnable Code

Provides complete, buildable examples for each feature, allowing developers to immediately test and learn in Xcode 7, as per the build instructions.

Visual Learning Aids

Includes GIFs and screenshots for every example in the README, such as animations and picker styles, making functionality easy to visualize.

Community Contributions

Has updates from developers like h oppenichu and kitasuke, adding examples for drawing paths and HealthKit, showing ongoing maintenance.

Cons

Outdated Development Stack

Requires Xcode 7 and watchOS 2, which are obsolete, leading to compatibility issues with modern macOS and Xcode versions.

Functional Limitations and Bugs

As admitted in the README, some demos like Gyroscope access are not available due to API issues, and the Open System URL example has known problems.

Complex Setup Process

Involves multiple configuration steps like enabling HealthKit, App Groups, and editing identifiers, which can be error-prone for quick testing.

Frequently Asked Questions

Quick Stats

Stars1,081
Forks139
Contributors0
Open Issues5
Last commit4 years ago
CreatedSince 2015

Tags

#code-examples#ios#apple-watch#mobile-development#watchos#ios-development#swift#core-graphics

Built With

C
Core Graphics
X
Xcode
i
iOS
C
CoreMotion
S
Swift

Included in

watchOS495
Auto-fetched 5 hours ago

Related Projects

SwiftHNSwiftHN

A Hacker News reader in Swift

Stars1,754
Forks279
Last commit5 years ago
WatchKit-AppsWatchKit-Apps

Tutorials app for WatchKit

Stars1,141
Forks148
Last commit9 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub