{"id":15037903,"url":"https://github.com/queeniecplusplus/ios_back_4","last_synced_at":"2026-03-17T12:44:19.193Z","repository":{"id":104588305,"uuid":"333336177","full_name":"QueenieCplusplus/iOS_Back_4","owner":"QueenieCplusplus","description":"Gyro","archived":false,"fork":false,"pushed_at":"2021-01-27T07:21:43.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-13T13:13:45.599Z","etag":null,"topics":["coremotion-sensors","gyroscope","ios11","ios14","swift4","swift5","xcode11","xcode12"],"latest_commit_sha":null,"homepage":"https://github.com/QueenieCplusplus/QuickGoThru#apple-ios-swift-溫故愛鳳---計畫復甦","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/QueenieCplusplus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-27T07:17:18.000Z","updated_at":"2021-01-27T13:02:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"9064e3d3-d5a3-4e20-9f95-b8971ad2043e","html_url":"https://github.com/QueenieCplusplus/iOS_Back_4","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/QueenieCplusplus%2FiOS_Back_4","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QueenieCplusplus%2FiOS_Back_4/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QueenieCplusplus%2FiOS_Back_4/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QueenieCplusplus%2FiOS_Back_4/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/QueenieCplusplus","download_url":"https://codeload.github.com/QueenieCplusplus/iOS_Back_4/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243410445,"owners_count":20286395,"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":["coremotion-sensors","gyroscope","ios11","ios14","swift4","swift5","xcode11","xcode12"],"created_at":"2024-09-24T20:36:18.259Z","updated_at":"2025-12-27T16:04:59.252Z","avatar_url":"https://github.com/QueenieCplusplus.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# iOS_Back_4\nGyro\n\n\n1. code in ViewController.\n\n\n        //\n        //  ViewController.swift\n        //  KatesGyroApp\n        //\n        //  Created by KatesAndroid on 2021/1/27 PM 3:05\n        //\n\n        import UIKit\n        import CoreMotion\n\n        class ViewController: UIViewController {\n\n            let cmmm = CMMotionManager()\n\n            override func viewDidLoad() {\n                super.viewDidLoad()\n                // after nib.\n\n                //cmmm.startGyroUpdates(to: \u003c#T##OperationQueue#\u003e, withHandler: \u003c#T##CMGyroHandler##CMGyroHandler##(CMGyroData?, Error?) -\u003e Void#\u003e)\n                cmmm.startGyroUpdates(to: OperationQueue()){\n                    (data, error) in\n                    if let data = data{\n                        let tmp = data.rotationRate\n                        print(\"(x, y, z) = (\\(tmp.x), \\(tmp.y), \\(tmp.z)\")\n                    }\n                }\n\n                //cmmm.stopGyroUpdates()\n            }\n\n            override func viewWillDisappear(_ animated: Bool) {\n                cmmm.stopGyroUpdates()\n            }\n\n\n        }\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqueeniecplusplus%2Fios_back_4","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqueeniecplusplus%2Fios_back_4","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqueeniecplusplus%2Fios_back_4/lists"}