Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

7 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

HabitTracker ๐Ÿ“ฑ

Motivational iOS app for habit tracking with gamification, advanced analytics, and numerous features

Swift iOS SwiftUI License

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

๐Ÿ“ธ Screenshots

HabitTracker App Screenshot

Main screen with habits list and achievements view

โœจ Key Features

๐Ÿ“ Habit Tracking

  • โœ… 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

๐Ÿ† Gamification

  • ๐ŸŽฎ Points and levels system
  • ๐ŸŽฏ Challenges (30-day challenges, 5 types)
  • ๐Ÿ… 8 types of achievements with automatic checking
  • โญ Badges and rewards
  • ๐Ÿ“Š Weekly review with rewards

๐Ÿ“Š Analytics & Statistics

  • ๐Ÿ“ˆ 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

๐Ÿ’ฌ Motivation

  • โœจ Daily motivational quotes (15+ quotes)
  • ๐Ÿ”” Customizable reminders (multiple)
  • ๐ŸŽ‰ Achievement animations
  • ๐Ÿ“ฑ Motivation widget on main screen
  • ๐ŸŽŠ Personalized messages

๐Ÿ’พ Export & Integrations

  • ๐Ÿ“„ Export to CSV, JSON, PDF
  • ๐Ÿ“… iOS Calendar integration (automatic export)
  • โค๏ธ HealthKit integration (steps, calories)
  • ๐Ÿ“ค Sharing achievements and statistics
  • โ˜๏ธ Backup and restore

๐Ÿ—‚๏ธ Organization

  • ๐Ÿ“ Habit groups (folders)
  • โšก Habit triggers (if-then logic)
  • ๐Ÿ“‹ Habit templates for quick creation
  • ๐ŸŽจ 6 themes
  • ๐Ÿ” Smart search and filtering

๐Ÿ—๏ธ Architecture

  • Pattern: MVVM + Repository Pattern
  • Data Storage: Core Data
  • UI Framework: SwiftUI
  • Minimum Version: iOS 16.0+
  • Language: Swift 5.7+

๐Ÿ“ฑ Main Screens (25 screens)

  • 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

๐ŸŽจ Technologies

  • 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

๐Ÿš€ Requirements

  • iOS 16.0+
  • Xcode 14.0+
  • Swift 5.7+

๐Ÿ”ง Installation

Clone the Repository

git clone https://github.com/rafaelwww07-ios/HabitTracker.git
cd HabitTracker

Open the Project

open HabitTracker.xcodeproj

Run

  1. Select a simulator or connected device
  2. Press Run (โŒ˜R) or click the Play button

๐Ÿ“ฆ Project Structure

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)

๐Ÿค Contributing

We welcome contributions to the project! Please read CONTRIBUTING.md before getting started.

๐Ÿ“„ License

This project is available under the MIT license. See LICENSE for details.

๐Ÿท๏ธ Tags

swift swiftui ios habit-tracker mvvm core-data gamification analytics motivation productivity healthkit charts swiftui-charts habit-forming goal-tracking streaks achievements challenges

๐Ÿ“Š Project Statistics

  • 68 Swift files
  • 25 screens
  • 15 services
  • 9 reusable components
  • 60+ features

๐Ÿ”ฎ Future Plans

  • iOS home screen widgets (WidgetKit)
  • Siri Shortcuts integration
  • iCloud synchronization
  • Social features (progress sharing)
  • Dark themes with accents
  • Photo attachments to completions

๐Ÿ‘ค Author

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.

About

๐Ÿ“ฑ Motivational iOS app for habit tracking with gamification, advanced analytics, and numerous features. Built with SwiftUI, Core Data, and follows MVVM architecture.

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages