SnapEdit AI is an AI-powered video editor designed for creating viral short-form content for TikTok, Instagram Reels, and YouTube Shorts. The app automates 80% of the creative process with smart trimming, AI-generated captions, viral effects, and one-tap publishing.
- Smart Video Import: Camera recording, photo library, and cloud storage integration
- AI-Powered Editing: Automatic trimming, silence removal, and jump cuts
- Intelligent Captions: AI-generated captions with viral styling and emoji integration
- Viral Templates: Pre-built templates for trending content formats
- Effects & Filters: Real-time transitions, filters, and visual effects
- One-Tap Export: Direct publishing to TikTok, Instagram, and YouTube
- Freemium Model: 3 free exports per month with watermark
- Pro Subscription: Unlimited exports, premium templates, and advanced AI features
- Usage Tracking: Export count monitoring and upgrade prompts
- SnapEditAIApp.swift - Main app entry point and state management
- ContentView.swift - Navigation controller and main tab interface
- OnboardingView.swift - User onboarding flow with feature introduction
- EditorView.swift - Main video editing interface with AI tools
- SupportingViews.swift - Additional views for templates, profile, and export
- AppState: Global app state management (subscription status, projects, usage)
- VideoProject: Video project data model with captions and effects
- Caption: Individual caption with timing and styling
- VideoEffect: Video effects and filters data model
- Modern declarative UI with SwiftUI
- Reactive state management with @StateObject and @EnvironmentObject
- Navigation with TabView and NavigationView
- AVFoundation for video playback and manipulation
- CoreML for AI-powered features (trimming, caption generation)
- Custom video timeline and scrubbing controls
- Whisper API for speech-to-text transcription
- OpenAI GPT-4 for caption generation and styling
- RunwayML/Replicate for advanced video effects
- Feature introduction with visual demonstrations
- Value proposition highlighting AI capabilities
- Free trial offer with premium upgrade option
- Import: Record new video or import from library
- Edit: Use AI tools for trimming, captions, and effects
- Style: Apply viral templates and filters
- Export: Choose platform and quality settings
- Share: Direct publishing or save to device
- Free Tier: 3 exports/month, watermarked videos, basic templates
- Pro Tier: $4.99/month, unlimited exports, premium features
- Upgrade Prompts: Strategic placement when limits are reached
import SwiftUI
import AVFoundation
import PhotosUI
import CoreML
import FirebaseCore
import FirebaseAnalytics
import FirebaseCrashlytics- Video import and playback functionality
- AI caption generation integration
- Real-time video effects processing
- Export pipeline with platform optimization
- Subscription management and payment processing
- iPad Pro version with advanced timeline
- Mac companion app for batch processing
- Android version for broader market reach
- Web app for desktop editing
- Open the project in Xcode 15+
- Configure signing and capabilities
- Copy
Config.plist.exampletoConfig.plistand add your API keys, or create a.envfile with the same keys. - Build and run on iOS 16+ device or simulator
Run all unit and UI tests using Xcode:
xcodebuild test -scheme SnapEditAI-Package -destination 'platform=iOS Simulator,name=iPhone 14,OS=16.4'Or open the project in Xcode and press Cmd+U to execute the test suite.
- OpenAI API: For caption generation and text processing
- Whisper API: For speech-to-text transcription
- Firebase: For user authentication and analytics
- RevenueCat: For subscription management
API credentials are never committed to the repository. The app reads values from Config.plist, an optional .env file, or environment variables in that order.
- Copy
Config.plist.exampletoConfig.plistand supply your own values, or - Create a
.envfile (also ignored by git) with the following keys.
Required keys:
OPENAI_API_KEYWHISPER_API_KEYFIREBASE_CONFIGREVENUECAT_KEY
For Firebase Analytics and Crashlytics:
- Create a Firebase project and enable Analytics and Crashlytics.
- Download the
GoogleService-Info.plistfrom the Firebase console and add it to the Xcode project. - Ensure Crashlytics run scripts are configured when archiving releases.
- Primary: Gen Z content creators (16-24 years)
- Secondary: Micro-influencers and small businesses
- Use Cases: TikTok videos, Instagram Reels, YouTube Shorts, podcast clips
- AI-First Approach: Automated editing reduces time from hours to minutes
- Viral Optimization: Templates and effects designed for maximum engagement
- Mobile-Native: Optimized for smartphone content creation workflow
- Platform Integration: Direct publishing with optimal settings for each platform
- Year 1: 100,000 active users, 8% conversion rate
- Monthly Revenue: $40,000 (8,000 paid users × $5)
- Year 2: $1M ARR with viral growth and feature expansion
This MVP provides a solid foundation for the full SnapEdit AI application with all core features implemented and ready for user testing and iteration.