{"id":13838530,"url":"https://github.com/wangyanchang21/Watch-App-Sampler","last_synced_at":"2025-07-10T23:31:34.984Z","repository":{"id":50350558,"uuid":"147785856","full_name":"wangyanchang21/Watch-App-Sampler","owner":"wangyanchang21","description":"⌚️A nice tutorial app for WatchOS, in swift 5.0.","archived":false,"fork":false,"pushed_at":"2022-12-04T15:59:17.000Z","size":36290,"stargazers_count":259,"open_issues_count":1,"forks_count":46,"subscribers_count":13,"default_branch":"master","last_synced_at":"2024-08-05T16:16:40.676Z","etag":null,"topics":["apple-watch","complications","healthkit","ios","swift","watchkit","watchos"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wangyanchang21.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-07T07:15:44.000Z","updated_at":"2024-08-01T02:37:04.000Z","dependencies_parsed_at":"2023-01-22T21:45:20.198Z","dependency_job_id":null,"html_url":"https://github.com/wangyanchang21/Watch-App-Sampler","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangyanchang21%2FWatch-App-Sampler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangyanchang21%2FWatch-App-Sampler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangyanchang21%2FWatch-App-Sampler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangyanchang21%2FWatch-App-Sampler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wangyanchang21","download_url":"https://codeload.github.com/wangyanchang21/Watch-App-Sampler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225663550,"owners_count":17504435,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apple-watch","complications","healthkit","ios","swift","watchkit","watchos"],"created_at":"2024-08-04T16:00:20.388Z","updated_at":"2024-11-21T02:30:38.822Z","avatar_url":"https://github.com/wangyanchang21.png","language":"Swift","funding_links":[],"categories":["Sample Apps"],"sub_categories":["Blog"],"readme":"# Watch-App-Sampler\n\n[![Platform](https://img.shields.io/badge/platform-%20watchOS%20%7C%20iOS-lightgray.svg)]()\n[![Language](https://img.shields.io/badge/swift-5.0-orange.svg)](http://swift.org)\n[![License](http://img.shields.io/badge/license-MIT-blue.svg)](http://mit-license.org)\n[![Contact](https://img.shields.io/badge/contact-wangyanchang21-green.svg)](https://github.com/wangyanchang21)\n\n\nA nice tutorial app for WatchOS, in swift.\n\nWatch-App-Sampler has supported WatchOS 5.0 and  Swift 5.0.\n\nIf you want to learn how to develop WathKit app, this tutorial app is the best choice.\n\n[English introduce](https://github.com/wangyanchang21/Watch-App-Sampler) / [中文介绍](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/README_chinese.md)\n\n![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/watch.jpg)\n\n\n## Getting Started\n\n- [Apple Watch Programming Guide](https://developer.apple.com/library/ios/documentation/General/Conceptual/WatchKitProgrammingGuide/index.html) - Official apple watch programming guide by Apple.\n- [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/)\n\n## Contents\n\n### Table\n\nTable and ItemRow.\n\n![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/table.gif)\n\n### Notification\n\nNotification development contains static and dynamic Interface.\n\n![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/notification.gif)\n\n### Complications\n\nThere are 33 templates for apple watch.\n\n![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/complication.png)\n\n### Connectivity\n\nMake a connectivity between watch to iPhone, send and recieve messages.\n\n![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/connectivity.gif)\n\n### Net Request\n\nShow image until it has been download completely.\n\n![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/request.gif)\n\n### Menus\n\nMenus and actions.\n\n![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/menum.gif)\n\n\n### GestureRecognizer\n\nThe type of Gesture, including TapGesture, LongPressGesture, SwipeGesture, PanGesture.\n\n![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/gesture.gif)\n\n\n### Alert\n\nThree alert style and AlertAction.\n\n![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/alert.gif)\n\n### Picker\n\nThe Style of picker and PickerItem.\n\n![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/picker.gif)\n\n\nProgress made by picker and images.\n\n![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/progress.gif)\n\n### Animation\n\nMake a animation to WKInterfaceObject.\n\n![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/animation.gif)\n\n### Text input and Voice input\n\nInput text in Voice or handwriting.\n\n![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/textInput.gif)\n\n### Voice Player\n\n![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/voicePlayer.gif)\n\n### Movie Player\n\n![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/moviePlayer.gif)\n\n### Inline Movie Player\n\n![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/inlinePlayer.gif)\n\n### Recorder\n\nRecord voice and save voice.\n\n![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/record.gif)\n\n### Tel or SMS \n\nCall or send SMS by watch.\n\n![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/openUrl.gif)\n\n### Accelerometer\n\nMonitor the detail of accelermeter on watch.\n\n![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/accelerometer.png)\n\n### Device Motion\n\nMonitor many types of device data on watch, like gravity, attitude, magnetism, rotationRate, acceleration...\n\n![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/deviceMotion.gif)\n\n### Location\n\nGet the details of your attitude, floor, speed...\n\n![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/location.png)\n\n### Map\n\nUse the map feature on your watch.\n\n![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/map.png)\n\n### HealthKit\n\nRead your heart rate by watch, and record the data.\n\n![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/heartRate.png)\n\n### Motion Activity\n\nRead your motion activity, which is is walking, running, or cycling...\n\n![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/motionActivity.png)\n\n### Quatz2D\n\nDrow complex image by Quatz2D on watch.\n\n![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/quatz.gif)\n\n### Gradation\n\nDrow gradient image by UIGraphic.\n\n![](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/image/graphic.gif)\n\n\n### Others\n\nData Storage, Background Task, Types of Haptic, Pedometer...\n\n\n## Prerequisites\n\n- Swift 5.0\n- Xcode 10+\n- iOS 10.0+\n- watchOS 5.0+\n\n## Thanks\n\n- [watchOS-2-Sampler](https://github.com/shu223/watchOS-2-Sampler) gave me some inspiration.\n\n## Author\n\n- DCSnail, [wangyanchang21](https://github.com/wangyanchang21)\n\n## License\n\nWatch-App-Sampler is licensed under the [MIT License](https://github.com/wangyanchang21/Watch-App-Sampler/blob/master/LICENSE).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangyanchang21%2FWatch-App-Sampler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwangyanchang21%2FWatch-App-Sampler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangyanchang21%2FWatch-App-Sampler/lists"}