{"id":18772418,"url":"https://github.com/shu223/watchos-2-sampler","last_synced_at":"2025-04-12T15:37:22.326Z","repository":{"id":33583648,"uuid":"37230063","full_name":"shu223/watchOS-2-Sampler","owner":"shu223","description":"Code examples for new features of watchOS 2.","archived":false,"fork":false,"pushed_at":"2021-11-22T10:55:28.000Z","size":1358,"stargazers_count":1079,"open_issues_count":5,"forks_count":138,"subscribers_count":81,"default_branch":"master","last_synced_at":"2025-04-11T05:59:39.228Z","etag":null,"topics":["ios","watchos"],"latest_commit_sha":null,"homepage":null,"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/shu223.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["shu223"],"custom":["https://paypal.me/shu223"]}},"created_at":"2015-06-11T00:28:05.000Z","updated_at":"2025-03-22T22:10:54.000Z","dependencies_parsed_at":"2022-09-12T22:22:44.823Z","dependency_job_id":null,"html_url":"https://github.com/shu223/watchOS-2-Sampler","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shu223%2FwatchOS-2-Sampler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shu223%2FwatchOS-2-Sampler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shu223%2FwatchOS-2-Sampler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shu223%2FwatchOS-2-Sampler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shu223","download_url":"https://codeload.github.com/shu223/watchOS-2-Sampler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248590519,"owners_count":21129837,"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":["ios","watchos"],"created_at":"2024-11-07T19:28:56.158Z","updated_at":"2025-04-12T15:37:22.292Z","avatar_url":"https://github.com/shu223.png","language":"Swift","funding_links":["https://github.com/sponsors/shu223","https://paypal.me/shu223"],"categories":[],"sub_categories":[],"readme":"# watchOS-2-Sampler\n\n[![Language](http://img.shields.io/badge/language-swift-brightgreen.svg?style=flat\n)](https://developer.apple.com/swift)\n[![License](http://img.shields.io/badge/license-MIT-lightgrey.svg?style=flat\n)](http://mit-license.org)\n[![Twitter](https://img.shields.io/badge/twitter-@shu223-blue.svg?style=flat)](http://twitter.com/shu223)\n\nCode examples for new features of watchOS 2.\n\n\n\u003cimg src=\"ResourcesForREADME/watchos2sampler.jpg\" width=\"242\"\u003e\n\n## Requirements\n\n- Xcode 7\n- iOS 9 and watchOS 2\n\n\n## How to build\n\n- Change the \"Team\" setting on [General] for each target.\n- Enable **HealthKit** for the parent app and WatchKit extension target.\n- Enable **App Groups** for the Watch app and WatchKit extension target.\n  - Edit \"AudioRecAndPlayInterfaceController\" with your group identifier.\n- Build \u0026 Run with **Xcode 7**\n\n\n## Contents\n\n### Animated Properties\n\nAnimate width/height, alpha and alignments.\n\n![](ResourcesForREADME/animation.gif)\n\n\n### Table Animations\n\nInsert and remove animations for WKInterfaceTable.\n\n![](ResourcesForREADME/tableanim.gif)\n\n\n### Picker Styles\n\nWKInterfacePicker styles catalog.\n\n\u003cimg src=\"ResourcesForREADME/picker.png\" width=\"136\"\u003e\n\n\n### Taptic Engine\n\nAccess to the Taptic engine using `playHaptic` method.\n\n\u003cimg src=\"ResourcesForREADME/taptic.png\" width=\"136\"\u003e\n\n\n### Audio Rec \u0026 Play\n\nRecord and play audio.\n\n\u003cimg src=\"ResourcesForREADME/rec_play.png\" width=\"275\"\u003e\n\n\n### Animation with Digital Crown\n\nCoordinated Animations with WKInterfacePicker and Digital Crown.\n\n![](ResourcesForREADME/crownanim.gif)\n\n\n### Draw Paths (Updated by [hoppenichu](https://github.com/hoppenichu))\n\nDraw paths with Core Graphics.\n\n\u003cimg src=\"ResourcesForREADME/bezier.png\" width=\"136\"\u003e\n\n\n### Gradations (Updated by [hoppenichu](https://github.com/hoppenichu))\n\nDraw gradations with Core Graphics.\n\n\u003cimg src=\"ResourcesForREADME/gradation.png\" width=\"136\"\u003e\n\n\n### Heart Rate (Created by [kitasuke](https://github.com/kitasuke))\n\nAccess to Heart Rate data using HealthKit.\n\n\u003cimg src=\"ResourcesForREADME/heartrate.png\" width=\"136\"\u003e\n\n\n### Accelerometer\n\nAccess to Accelerometer data using CoreMotion.\n\n\u003cimg src=\"ResourcesForREADME/acc.png\" width=\"136\"\u003e\n\n### Gyroscope (Not Available)\n\nAccess to Gyroscope data using CoreMotion. \n\n**These APIs are available, however CMMotionManager always returns `false` for `gyroAvailable`. So actually it's not available for now.**\n\n\u003cimg src=\"ResourcesForREADME/gyro.png\" width=\"136\"\u003e\n\n### Device Motion (Not Available)\n\nAccess to DeviceMotion data using CoreMotion. \n\n**These APIs are available, however CMMotionManager always returns `false` for `deviceMotionAvailable`. So actually it's not available for now.**\n\n\u003cimg src=\"ResourcesForREADME/devmotion.png\" width=\"136\"\u003e\n\n### Pedometer\n\nCounting steps demo using CMPedometer.\n\n\u003cimg src=\"ResourcesForREADME/pedometer.png\" width=\"136\"\u003e\n\n### Alert\n\nPresent an alert or action sheet.\n\n\u003cimg src=\"ResourcesForREADME/alert.png\" width=\"414\"\u003e\n\n\n### Interactive Messaging\n\nSending message to phone and receiving from phone demo with WatchConnectivity.\n\n\u003cimg src=\"ResourcesForREADME/interactive.png\" width=\"136\"\u003e\n\n\n### Audio File Player\n\nPlay an audio file with WKAudioFilePlayer.\n\n\u003cimg src=\"ResourcesForREADME/audiofile.png\" width=\"136\"\u003e\n\n**Need to pair a Bluetooth headset on your Apple Watch.**\n\n### Open System URL\n\nOpen Tel or SMS app using openSystemURL: method.\n\n\u003cimg src=\"ResourcesForREADME/open.png\" width=\"136\"\u003e\n\n\n### Network Access (Created by [KAMEDAkyosuke](https://github.com/KAMEDAkyosuke))\n\nGet an image data from network using NSURLSession.\n\n\u003cimg src=\"ResourcesForREADME/network.png\" width=\"136\"\u003e\n\n\n## Known Issues\n\n- Open System URL\n  - Phone doesn't launch...\n  - It's based on the Apple's document. \n  - `sms:` works with same way. I have no idea why it doesn't work!\n\n\n## iOS-9-Sampler\n\nYou can check the **examples for iOS 9** new features on [iOS-9-Sampler](https://github.com/shu223/iOS-9-Sampler)!!\n\n\u003ca href=\"https://github.com/shu223/iOS-9-Sampler\"\u003e\u003cimg src=\"https://github.com/shu223/iOS-9-Sampler/blob/master/ResourcesForREADME/uistackview.gif?raw=true\"\u003e\u003c/a\u003e\n\n- https://github.com/shu223/iOS-9-Sampler\n\n\n## Author\n\n**Shuichi Tsutsumi**\n\niOS freelancer in Japan. Welcome works from abroad!\n\n- PAST WORKS:  [My Profile Summary](https://medium.com/@shu223/my-profile-summary-f14bfc1e7099#.vdh0i7clr)\n- PROFILES: [LinkedIn](https://www.linkedin.com/profile/view?id=214896557)\n- BLOGS: [English](https://medium.com/@shu223/) / [Japanese](http://d.hatena.ne.jp/shu223/)\n- CONTACTS: [Twitter](https://twitter.com/shu223) / [Facebook](https://www.facebook.com/shuichi.tsutsumi)\n\n\n\n## Special Thanks\n\nThe icon is designed by [Okazu](https://www.facebook.com/pashimo).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshu223%2Fwatchos-2-sampler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshu223%2Fwatchos-2-sampler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshu223%2Fwatchos-2-sampler/lists"}