These packages are available as a package collection, usable in Xcode or SwiftPM.
A Swift library for the MPU-6050 (and MPU-6000 family) Accelerometer and Gyroscope
1 package.