Skip to content

sougatoroy3/BetterRest-iOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💤 BetterRest – Your Smart Sleep Companion

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.


🚀 Features

  • 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.


🧠 How It Works

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.


📸 Preview

Add your screenshots here to showcase the app’s interface and experience.

Home Screen Input Form Recommended Bedtime
screenshot1 screenshot2 screenshot3

🛠 Technologies Used

  • 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.

📦 Installation

  1. Clone the repository:
    git clone https://github.com/yourusername/BetterRest.git
  2. Open BetterRest.xcodeproj in Xcode.
  3. Build and run the app on your simulator or device.

📌 Requirements

iOS 15+ Xcode 14+ Swift 5.5+

🤝 Contributing

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.

✨ Credits

Built with ❤️ by [Sougato Roy] using SwiftUI and CoreML.

About

A SwiftUI app that uses Core ML to recommend your ideal bedtime based on wake-up time, sleep needs, and coffee intake. Sleep smarter, live better.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages