# MHaroonBaig/MotionKit

Get the data from Accelerometer, Gyroscope and Magnetometer in only Two or a few lines of code. CoreMotion now made insanely simple  :octocat:   :satellite:

Repository: https://github.com/MHaroonBaig/MotionKit
Canonical: https://ross.abutalabs.com/products/motionkit
Homepage: http://goo.gl/bpXBlO
Language: Swift
License: MIT
License Family: permissive
Last push: 2018-05-07T03:00:53+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4218, "days_push": 3040, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1081, forks 130 (observed 2026-08-28T04:03:30.779236+00:00)

## What it is
MotionKit is a Swift wrapper around Apple's CoreMotion framework that simplifies retrieving accelerometer, gyroscope, magnetometer, and device motion data on iOS. It exposes a clean closure- and delegate-based API so developers can get sensor values in just a few lines of code, compatible with both Swift and Objective-C.

## Use cases
- read accelerometer data in iOS with minimal code
- get gyroscope values from an iPhone app
- access magnetometer readings via CoreMotion
- retrieve processed device motion data instead of raw sensor values
- simplify CoreMotion usage in Swift or Objective-C
- stream motion sensor updates asynchronously in an iOS app

## When to choose
- you want a simple, concise API over CoreMotion for accelerometer, gyroscope, or magnetometer data
- you need Swift and Objective-C compatibility for motion sensor access
- you prefer closure- or delegate-based asynchronous sensor updates

## When to avoid
- you need actively maintained or updated sensor libraries (last release was 2018)
- you target platforms other than iOS
- you need advanced CoreMotion features not exposed by the wrapper

## Facets
- artifact type: library
- maturity: abandoned
- function: sdk, developer-tools
- domain: mobile-development
- platform: -
- tags: coremotion, accelerometer, gyroscope, magnetometer, motion-data, wrapper, sensors, ios, swift, mobile

## Member repositories
- MHaroonBaig/MotionKit (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:30.779236+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:51:18.799784+00:00, confidence not recorded.
  - readme: https://github.com/MHaroonBaig/MotionKit (fetched 2026-08-28T04:03:30.779236+00:00, sha 8b3738af1653)
- Data as of 2026-08-30T08:39:29.467469+00:00.
