Skip to content

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.

Notifications You must be signed in to change notification settings

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

No packages published

Languages