BetterRest is a beautifully designed iOS app built using SwiftUI and powered by Core ML. It helps users calculate their ideal bedtime based on their wake-up time, desired hours of sleep, and daily coffee intake. Whether you're optimizing your routine or just want to sleep smarter, BetterRest is here to help you wake up refreshed.
-
β° Dynamic Wake Time Picker
Select when you'd like to wake up and let the app do the rest. -
βοΈ Customizable Coffee Intake
Adjust your daily coffee consumption β from 1 to 20 cups β and see how it impacts your sleep. -
π Sleep Duration Control
Choose how many hours of sleep you want (from 4 to 12 hours) in 15-minute increments. -
π€ Machine Learning Powered
Uses Appleβs Core ML and the SleepCalculator.mlmodel to make accurate sleep predictions. -
π± Live Recommendations
The ideal bedtime is always visible β updated in real-time as you adjust your preferences.
Behind the scenes, BetterRest feeds your input into a CoreML model trained on sleep patterns. It considers:
- Your selected wake-up time
- The amount of sleep you desire
- Your coffee intake for the day
The result? A precise, personalized recommended bedtime that updates instantly.
Add your screenshots here to showcase the appβs interface and experience.
| Home Screen | Input Form | Recommended Bedtime |
|---|---|---|
![]() |
![]() |
![]() |
- SwiftUI β Declarative UI for a seamless user experience.
- Core ML β Integrates the SleepCalculator model to provide smart predictions.
- Xcode Previews β Rapid interface iteration and testing.
- Clone the repository:
git clone https://github.com/yourusername/BetterRest.git
- Open BetterRest.xcodeproj in Xcode.
- Build and run the app on your simulator or device.
iOS 15+ Xcode 14+ Swift 5.5+
Have ideas to improve BetterRest? Found a bug? Contributions are welcome!
Fork the project. Create your feature branch: git checkout -b feature/your-feature Commit your changes. Push to the branch. Open a pull request.
Built with β€οΈ by [Sougato Roy] using SwiftUI and CoreML.


