Motivational iOS app for habit tracking with gamification, advanced analytics, and numerous features
A full-featured iOS application for tracking habits with a motivational system, gamification, and advanced analytics. Built using SwiftUI and following iOS development best practices.
Author: Rafael Mukhametov
- โ Create and manage habits with full customization
- โ Progress calendar and visualization
- โ Streak system (consecutive days) with animations
- โ Completion notes
- โ Categories and search/filtering (6 filter types)
- โ Archiving and duplicating habits
- โ 10 predefined habit templates
- ๐ฎ Points and levels system
- ๐ฏ Challenges (30-day challenges, 5 types)
- ๐ 8 types of achievements with automatic checking
- โญ Badges and rewards
- ๐ Weekly review with rewards
- ๐ Detailed statistics per habit
- ๐ Advanced analytics with predictions
- ๐ฅ Heat Map activity calendar (yearly overview)
- ๐ Time-of-day statistics
- ๐ก Personalized insights and recommendations
- ๐ Period comparison (month vs month)
- ๐ Custom periods for analysis
- ๐ Trends and forecasts based on data
- โจ Daily motivational quotes (15+ quotes)
- ๐ Customizable reminders (multiple)
- ๐ Achievement animations
- ๐ฑ Motivation widget on main screen
- ๐ Personalized messages
- ๐ Export to CSV, JSON, PDF
- ๐ iOS Calendar integration (automatic export)
- โค๏ธ HealthKit integration (steps, calories)
- ๐ค Sharing achievements and statistics
- โ๏ธ Backup and restore
- ๐ Habit groups (folders)
- โก Habit triggers (if-then logic)
- ๐ Habit templates for quick creation
- ๐จ 6 themes
- ๐ Smart search and filtering
- Pattern: MVVM + Repository Pattern
- Data Storage: Core Data
- UI Framework: SwiftUI
- Minimum Version: iOS 16.0+
- Language: Swift 5.7+
- Main Screen - habit grid with progress circles
- Habit Details - calendar, statistics, charts, Heat Map
- Create/Edit - full habit configuration
- Statistics - overall statistics and analytics
- Profile - progress, level, badges
- Challenges - participate in challenges
- Dashboard - overview of key metrics
- Settings - themes, export, backup
- And 17 more specialized screens
- SwiftUI - modern declarative UI
- Core Data - data persistence
- Combine - reactive programming
- Charts - data visualization
- UserNotifications - local notifications
- HealthKit - health integration
- EventKit - calendar integration
- PDFKit - PDF report generation
- iOS 16.0+
- Xcode 14.0+
- Swift 5.7+
git clone https://github.com/rafaelwww07-ios/HabitTracker.git
cd HabitTrackeropen HabitTracker.xcodeproj- Select a simulator or connected device
- Press Run (โR) or click the Play button
Main structure:
HabitTracker/
โโโ CoreData/ # Core Data setup
โโโ Models/ # Data models (11 files)
โโโ Repository/ # Data access layer
โโโ Services/ # Services (15 files)
โโโ ViewModels/ # ViewModels for MVVM
โโโ Views/ # SwiftUI Views (25 screens)
โโโ Components/ # Reusable components (9)
We welcome contributions to the project! Please read CONTRIBUTING.md before getting started.
This project is available under the MIT license. See LICENSE for details.
swift swiftui ios habit-tracker mvvm core-data gamification analytics motivation productivity healthkit charts swiftui-charts habit-forming goal-tracking streaks achievements challenges
- 68 Swift files
- 25 screens
- 15 services
- 9 reusable components
- 60+ features
- iOS home screen widgets (WidgetKit)
- Siri Shortcuts integration
- iCloud synchronization
- Social features (progress sharing)
- Dark themes with accents
- Photo attachments to completions
Rafael Mukhametov
Made with โค๏ธ using SwiftUI
Note: This is an open-source project for habit tracking. For production use, additional testing and optimization are recommended.