BetterRest is a simple SwiftUI app designed to help you improve your sleep quality by calculating the optimal bedtime based on your wake-up time, desired sleep duration, and coffee intake.
The recommendations provided by BetterRest are based on a machine learning model trained on simulated data and should be used for informational purposes only. The data used to train the model is not actual health data and should not be considered as a substitute for professional medical advice. Always consult with a healthcare professional for personalized sleep recommendations and guidance on improving sleep quality.
- Bedtime Recommendation: Enter your wake-up time, desired sleep duration, and daily coffee intake to receive a personalized recommendation for your bedtime.
- Rate Sleep Quality: Keep track of your sleep quality by rating your sleep experience and adding optional comments.
- Weekly Summary: View a summary of your sleep data for the past week, including sleep quality ratings and comments.
Swift
SwiftUI
- Launch the app and enter your preferred wake-up time, desired sleep duration, and daily coffee intake.
- Receive a personalized recommendation for your bedtime based on the entered information.
- Rate your sleep quality and add comments to track your sleep experience.
- View a summary of your sleep data for the past week to monitor your sleep habits and make adjustments as needed.
-
Clone the repository:
git clone https://github.com/devkilyungi/BetterRest.git
-
Open the project in Xcode.
-
Build and run the project on your simulator or device.
The app utilizes a Core ML model to predict the optimal bedtime. The model takes into account the user's wake-up time, desired sleep duration, and coffee intake to provide a personalized recommendation.
- This project was created as a learning exercise to understand the integration of Core ML and Create ML in SwiftUI projects.
- Inspired by the "BetterRest" project from the 100 Days of SwiftUI course by Paul Hudson.
- Victor Kilyungi

