MotionBalance is an open-source iOS and macOS application that helps reduce motion sickness by using iPhone motion sensors to create compensatory visual effects on a Mac display.
- Real-time motion detection using iPhone sensors
- Adaptive visual compensation on macOS
- Bluetooth connectivity between devices
- Customizable sensitivity settings
- Battery-optimized performance
- Accessibility support
- iOS 15.0+ / macOS 12.0+
- Xcode 14.0+
- iPhone with gyroscope and accelerometer
- Mac with Bluetooth support
- Clone the repository:
git clone https://github.com/yourusername/MotionBalance.git
cd MotionBalance- Open the project in Xcode:
open MotionBalance.xcodeproj- Build and run both the iOS and macOS targets.
- Launch the macOS app on your Mac
- Launch the iOS app on your iPhone
- Follow the setup wizard to:
- Position your device correctly
- Calibrate motion detection
- Connect to your Mac
- Adjust comfort settings
MotionManager: Handles sensor data collection and processingBluetoothPeripheralManager: Manages device communicationSetupManager: Controls setup and calibration flow
MotionCompensationView: Renders visual compensationMetalDotRenderer: Handles efficient graphics renderingBluetoothCentralManager: Manages device connections
We welcome contributions! Please see our Contributing Guidelines for details.
This project is licensed under the MIT License - see the LICENSE file for details.