{"id":13485391,"url":"https://github.com/SimformSolutionsPvtLtd/CMPedometerDemo","last_synced_at":"2025-03-27T19:31:06.003Z","repository":{"id":49752484,"uuid":"125227634","full_name":"SimformSolutionsPvtLtd/CMPedometerDemo","owner":"SimformSolutionsPvtLtd","description":"Let's count steps using CMPedometer","archived":false,"fork":false,"pushed_at":"2018-03-15T13:39:55.000Z","size":17,"stargazers_count":14,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-30T20:44:03.775Z","etag":null,"topics":["coremotion","ios","pedometer","watchkit","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/SimformSolutionsPvtLtd.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-03-14T14:42:40.000Z","updated_at":"2023-09-30T21:59:28.000Z","dependencies_parsed_at":"2022-09-06T07:52:16.076Z","dependency_job_id":null,"html_url":"https://github.com/SimformSolutionsPvtLtd/CMPedometerDemo","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/SimformSolutionsPvtLtd%2FCMPedometerDemo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimformSolutionsPvtLtd%2FCMPedometerDemo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimformSolutionsPvtLtd%2FCMPedometerDemo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimformSolutionsPvtLtd%2FCMPedometerDemo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SimformSolutionsPvtLtd","download_url":"https://codeload.github.com/SimformSolutionsPvtLtd/CMPedometerDemo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245910751,"owners_count":20692497,"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","ios","pedometer","watchkit","watchos"],"created_at":"2024-07-31T18:00:21.393Z","updated_at":"2025-03-27T19:31:05.726Z","avatar_url":"https://github.com/SimformSolutionsPvtLtd.png","language":"Swift","readme":"# CMPedometerDemo\nLet's count steps using CMPedometer\n\n\n# Usage\n #### Live steps\n  \n ```swift\n activityHelper.stepsCountingHandler = { steps,\n            distance,\n            averagePace,\n            pace,\n            floorsAscended,\n            floorsDscended,\n            cadence,\n            timeElapsed in\n        }\n ```\n  Then start observing using: \n  \n  ```swift\n    activityHelper.startMonitoring()\n  ```\n  \n  To Stop observing Steps:\n  \n  ```swift\n    activityHelper.stopMonitoring()\n  ```\n  \n   #### Historical steps\n   \n   ```swift\n   let startDate = Date() // Your desire start date\n        let endDate = Date() // Your desire end date\n        activityHelper.getStepsDataFor(startDate: startDate,\n                                       endDate: endDate,\n                                       successBlock: {(steps,\n                                        distance,\n                                        averagePace,\n                                        pace,\n                                        floorsAscended,\n                                        floorsDscended,\n                                        cadence,\n                                        timeElapsed )  in\n                                        \n        }, errorBlock: { (error) in\n            \n        })\n   ```\n","funding_links":[],"categories":["iOS Guides","iOS"],"sub_categories":["Swift"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSimformSolutionsPvtLtd%2FCMPedometerDemo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSimformSolutionsPvtLtd%2FCMPedometerDemo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSimformSolutionsPvtLtd%2FCMPedometerDemo/lists"}