Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wangyanchang21/Watch-App-Sampler

⌚️A nice tutorial app for WatchOS, in swift 5.0.
https://github.com/wangyanchang21/Watch-App-Sampler

apple-watch complications healthkit ios swift watchkit watchos

Last synced: about 1 month ago
JSON representation

⌚️A nice tutorial app for WatchOS, in swift 5.0.

Awesome Lists containing this project

README

        

# Watch-App-Sampler

[![Platform](https://img.shields.io/badge/platform-%20watchOS%20%7C%20iOS-lightgray.svg)]()
[![Language](https://img.shields.io/badge/swift-5.0-orange.svg)](http://swift.org)
[![License](http://img.shields.io/badge/license-MIT-blue.svg)](http://mit-license.org)
[![Contact](https://img.shields.io/badge/contact-wangyanchang21-green.svg)](https://github.com/wangyanchang21)

A nice tutorial app for WatchOS, in swift.

Watch-App-Sampler has supported WatchOS 5.0 and Swift 5.0.

If you want to learn how to develop WathKit app, this tutorial app is the best choice.

[English introduce](https://github.com/wangyanchang21/Watch-App-Sampler) / [中文介绍](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/README_chinese.md)

![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/watch.jpg)

## Getting Started

- [Apple Watch Programming Guide](https://developer.apple.com/library/ios/documentation/General/Conceptual/WatchKitProgrammingGuide/index.html) - Official apple watch programming guide by Apple.
- [WatchOS开发教程](https://wangyanchang21.github.io/2018/WatchOS%E5%BC%80%E5%8F%91%E6%95%99%E7%A8%8B%E4%B9%8B%E4%B8%80/)

## Contents

### Table

Table and ItemRow.

![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/table.gif)

### Notification

Notification development contains static and dynamic Interface.

![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/notification.gif)

### Complications

There are 33 templates for apple watch.

![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/complication.png)

### Connectivity

Make a connectivity between watch to iPhone, send and recieve messages.

![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/connectivity.gif)

### Net Request

Show image until it has been download completely.

![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/request.gif)

### Menus

Menus and actions.

![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/menum.gif)

### GestureRecognizer

The type of Gesture, including TapGesture, LongPressGesture, SwipeGesture, PanGesture.

![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/gesture.gif)

### Alert

Three alert style and AlertAction.

![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/alert.gif)

### Picker

The Style of picker and PickerItem.

![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/picker.gif)

Progress made by picker and images.

![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/progress.gif)

### Animation

Make a animation to WKInterfaceObject.

![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/animation.gif)

### Text input and Voice input

Input text in Voice or handwriting.

![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/textInput.gif)

### Voice Player

![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/voicePlayer.gif)

### Movie Player

![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/moviePlayer.gif)

### Inline Movie Player

![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/inlinePlayer.gif)

### Recorder

Record voice and save voice.

![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/record.gif)

### Tel or SMS

Call or send SMS by watch.

![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/openUrl.gif)

### Accelerometer

Monitor the detail of accelermeter on watch.

![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/accelerometer.png)

### Device Motion

Monitor many types of device data on watch, like gravity, attitude, magnetism, rotationRate, acceleration...

![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/deviceMotion.gif)

### Location

Get the details of your attitude, floor, speed...

![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/location.png)

### Map

Use the map feature on your watch.

![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/map.png)

### HealthKit

Read your heart rate by watch, and record the data.

![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/heartRate.png)

### Motion Activity

Read your motion activity, which is is walking, running, or cycling...

![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/motionActivity.png)

### Quatz2D

Drow complex image by Quatz2D on watch.

![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/quatz.gif)

### Gradation

Drow gradient image by UIGraphic.

![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/graphic.gif)

### Others

Data Storage, Background Task, Types of Haptic, Pedometer...

## Prerequisites

- Swift 5.0
- Xcode 10+
- iOS 10.0+
- watchOS 5.0+

## Thanks

- [watchOS-2-Sampler](https://github.com/shu223/watchOS-2-Sampler) gave me some inspiration.

## Author

- DCSnail, [wangyanchang21](https://github.com/wangyanchang21)

## License

Watch-App-Sampler is licensed under the [MIT License](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/LICENSE).