I think it's basic to read the value of the acceleration sensor and obtain the location information by integrating it.
People's movements are not simple, so you will need to remove noise and identify your movements.
For code that reads acceleration sensor values, you can refer to the article in XCode8Swift3 to obtain acceleration sensor values for iOS 9.3.
© 2024 OneMinuteCode. All rights reserved.