An intelligent habit tracking iOS app that uses AI to suggest personalized habits and helps users build lasting positive routines.
- โ Smart Habit Tracking - Track daily, weekly, or custom habits
- ๐ค AI Habit Suggestions - Get personalized habit recommendations powered by OpenAI
- ๐ Beautiful Analytics - Visualize progress with custom charts and rings
- ๐ Smart Notifications - Never miss a habit with intelligent reminders
- ๐ Dark Mode Support - Beautiful UI in both light and dark themes
- ๐พ Offline Mode - All data stored locally with CoreData
- ๐ Background Sync - Automatic habit reset and streak updates
- Clean MVVM + Coordinator architecture
- Protocol-oriented programming
- Dependency injection
- Async/await networking
- Custom CAShapeLayer animations
- CoreData persistence
- Background task scheduling
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Coordinators โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโ โ
โ โ View โโโโViewModel โโโโModel โ โ
โ โControllerโ โ โ โ โ โ
โ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโ โ
โ โ โ
โโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโค
โ Services โ
โ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโ โ
โ โ AI โ โ CoreData โ โNotif.โ โ
โ โ Service โ โ Service โ โServiceโ โ
โ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
- Xcode 14.0+
- iOS 14.0+
- OpenAI API Key
- Clone the repository
git clone https://github.com/yourusername/HabitHero.git
cd HabitHero- Install dependencies (if using CocoaPods/SPM)
pod install # or
swift package resolve- Add your OpenAI API key
// In APIKeys.swift
struct APIKeys {
static let openAIKey = "YOUR_API_KEY_HERE"
}- Open
HabitHero.xcworkspaceand run
| Dashboard | Add Habit | Analytics | Settings |
|---|---|---|---|
- Language: Swift 5+
- UI Framework: UIKit (Programmatic)
- Architecture: MVVM + Coordinator
- Database: CoreData
- Networking: URLSession + async/await
- AI Integration: OpenAI API
- Notifications: UserNotifications Framework
- Design Patterns:
- Dependency Injection
- Protocol-Oriented Programming
- Repository Pattern
- Observer Pattern
HabitHero/
โโโ App/ # App lifecycle & coordinators
โโโ Modules/ # Feature modules (MVVM)
โ โโโ HabitList/
โ โโโ AddHabit/
โ โโโ Analytics/
โ โโโ Settings/
โโโ Services/ # Business logic & APIs
โ โโโ AIService/
โ โโโ CoreDataService/
โ โโโ NotificationService/
โโโ Models/ # Data models
โโโ Utilities/ # Extensions & helpers
โโโ Resources/ # Assets & configs
- iOS Widgets - Quick habit check from home screen
- iCloud Sync - Sync habits across devices
- Siri Shortcuts - Voice control for habits
- Apple Watch App - Track habits from your wrist
- Social Features - Share progress with friends
- Gamification - Achievements and rewards
- Advanced Analytics - ML-powered insights
- Export Data - PDF reports and CSV export
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the project
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
Your Name
- GitHub: @Manojsuthar2000
- LinkedIn: Manoj Suthar
- OpenAI for the GPT API
- Apple Developer Documentation
- The iOS Developer Community
Made with โค๏ธ and โ by an iOS Developer