{"id":22002195,"url":"https://github.com/kenanatmaca/kmotionhelper","last_synced_at":"2025-08-13T18:38:59.331Z","repository":{"id":130625479,"uuid":"102398266","full_name":"KenanAtmaca/KMotionHelper","owner":"KenanAtmaca","description":"İOS CoreMotion Helper Class","archived":false,"fork":false,"pushed_at":"2017-09-04T20:36:48.000Z","size":2,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-16T02:37:19.656Z","etag":null,"topics":["coremotion","ios-lib","ios-swift","pedometer"],"latest_commit_sha":null,"homepage":null,"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/KenanAtmaca.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,"zenodo":null}},"created_at":"2017-09-04T20:08:42.000Z","updated_at":"2024-01-26T08:28:46.000Z","dependencies_parsed_at":"2023-06-27T03:33:50.007Z","dependency_job_id":null,"html_url":"https://github.com/KenanAtmaca/KMotionHelper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/KenanAtmaca/KMotionHelper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KenanAtmaca%2FKMotionHelper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KenanAtmaca%2FKMotionHelper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KenanAtmaca%2FKMotionHelper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KenanAtmaca%2FKMotionHelper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KenanAtmaca","download_url":"https://codeload.github.com/KenanAtmaca/KMotionHelper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KenanAtmaca%2FKMotionHelper/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270291385,"owners_count":24559553,"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","status":"online","status_checked_at":"2025-08-13T02:00:09.904Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","ios-lib","ios-swift","pedometer"],"created_at":"2024-11-29T23:16:49.458Z","updated_at":"2025-08-13T18:38:59.295Z","avatar_url":"https://github.com/KenanAtmaca.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KMotionHelper\nİOS CoreMotion Helper Class\n\n![alt tag](https://user-images.githubusercontent.com/16580898/30037988-f3d1cff4-91c8-11e7-8971-9401e2b8d16b.png)\n\n#### Use\n\n```Swift\n      var helper = KMotionHelper.shared\n```\n\n##### Sensor Actions\n\n```Swift\n      helper.accelerometer { (acceloremeter) in\n            // Actions\n        }\n        \n        helper.gyro { (gyro) in\n            // Actions\n        }\n        \n        helper.magnetometer { (magnometer) in\n            // Actions\n        }\n        \n        helper.motion { (motion) in\n            // Actions\n        }\n```\n\n##### Pedometer \u0026 Activity\n\n```Swift\n       helper.startPedometer { (pedo) in\n            self.pedoLabel.text = \"\\(pedo.numberOfSteps)\"\n        }\n        \n        helper.startActivity { (acc) in\n            if acc.stationary {\n                self.view.backgroundColor = UIColor.lightGray\n            } else if acc.walking {\n                self.view.backgroundColor = UIColor.green\n            }\n        }\n```\n\n##### Helpful functions\n\n```Swift\n     scale(data:Double) -\u003e CGFloat\n     rotation(data: CMRotationRate) -\u003e Double\n     degree(radian:Double) -\u003e Double\n     magnitude(from attitude: CMAttitude) -\u003e Double\n```\n\n- [X] info.plist select Privacy settings motion usage.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenanatmaca%2Fkmotionhelper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkenanatmaca%2Fkmotionhelper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenanatmaca%2Fkmotionhelper/lists"}