This demo was created for the Google Developer Group session to showcase the integration of SwiftUI with Firebase Vertex AI using Gemini model. It demonstrates how to build a modern e-commerce application with AI-powered shopping assistance.
This demo shows:
- SwiftUI modern UI implementation
- Firebase integration in iOS
- Vertex AI with Gemini model implementation
- Real-world application architecture
- Best practices for iOS development
-
Product Catalog
- Categorized product listings
- Detailed product views
- Product search functionality
- Category filtering
-
Shopping Cart
- Add/remove items
- Quantity management
- Real-time total calculation
-
AI Shopping Assistant
- Powered by Gemini 1.5
- Product-specific advice
- Real-time chat interface
- Session-based conversations
- Personalized recommendations
- Xcode 15.0+
- iOS 16.0+
- macOS Ventura+
- Swift 5.9+
- Google Cloud Account (for Vertex AI)
- Firebase Project
-
Firebase and Vertex AI Setup
- Follow the official Firebase documentation for iOS setup: Firebase iOS Setup Guide
- For Vertex AI setup and initialization: Vertex AI Documentation
- Make sure to follow security best practices for API keys and credentials
-
Swift Package Manager
- In Xcode, go to File → Add Packages
- Add
https://github.com/firebase/firebase-ios-sdk
- Select Firebase Core and Firebase Vertex AI dependencies
This is a demo application created for educational purposes during the Google Developer Group session. For production use:
- Please refer to the official Firebase documentation for the most up-to-date setup information
- Implement proper security measures
- Follow Firebase best practices
- Add proper error handling
- Implement user authentication
Documentation: Firebase Documentation
This project is licensed under the MIT License - see the LICENSE.md file for details
This demo was created for the Google Developer Groups on Campus Chulalongkorn University - Bangkok, Thailand. Follow GDG for more events and workshops!