An iOS app that analyzes food calories and nutrients from photos using OpenAI's Vision API.
- 📸 Take photos of food items
- 🤖 AI-powered food analysis using OpenAI Vision API
- 📊 Detailed calorie and nutrient breakdown
- 📅 Food history tracking with calendar view
- ✏️ Edit and customize analyzed data
- iOS 15.0+
- Xcode 14.0+
- Swift 5.0+
- OpenAI API Key
- Clone the repository:
git clone https://github.com/yourusername/cal-ai-ios.git-
Open
App Click Cal.xcodeprojin Xcode -
Add your OpenAI API key:
- Create a new file named
Config.xcconfig - Add your API key:
OPENAI_API_KEY = your_api_key_here
- Create a new file named
-
Build and run the project
App Click Cal/
├── App/
│ ├── AppDelegate.swift
│ └── SceneDelegate.swift
├── Features/
│ ├── Camera/
│ ├── Analysis/
│ ├── History/
│ └── Settings/
├── Core/
│ ├── Models/
│ ├── Services/
│ └── Utils/
└── Resources/
├── Assets.xcassets
└── Info.plist
The app follows MVVM (Model-View-ViewModel) architecture pattern:
- Models: Data structures and business logic
- Views: SwiftUI views and view controllers
- ViewModels: Business logic and data transformation
- Services: API calls and data persistence
-
Camera Feature:
- Implement camera capture
- Image processing and optimization
-
Analysis Feature:
- OpenAI Vision API integration
- Food recognition and calorie calculation
-
History Feature:
- Calendar view implementation
- Food log persistence
-
Settings:
- User preferences
- API configuration
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Swift 5+
- Xcode (base project)
- Cursor AI IDE for AI-assisted development
- SweetPad VS Code extension for iOS development
- OpenAI Vision API for image analysis
- Local storage for logs (Core Data / UserDefaults)
- Clone the repository:
git clone https://github.com/pushpendra996/apps-click-cal-ai-ios.git cd apps-click-cal-ai-ios