A beautifully designed SwiftUI-based prototype of a Tesla-style mobile application. This project focuses on delivering a smooth, modern UI experience with features such as car controls, custom media player, charging screen, valet mode, and map annotations — all built natively in SwiftUI using AVFoundation and SF Symbols.
-
🔒 Car Controls
Lock/Unlock, Honk, Flashlights, Trunk access, and Start/Stop vehicle functionality -
🎶 Media Player
A fully interactive audio player usingAVAudioPlayer, with:- Play/Pause
- Seek bar with timestamp
- Forward/backward controls
- Volume slider
-
🔌 Charging View
Dismissible charging screen overlay -
🧤 Valet Mode
Toggle to enable/disable valet mode with visual feedback -
🗺️ Custom Map Annotations
Stylish, dynamic pins with icons and color coding -
🌙 Dark Mode First
The UI is optimized for a dark theme, providing a sleek, car-like aesthetic
| Tool/Framework | Description |
|---|---|
| SwiftUI | Declarative UI framework by Apple |
| AVFoundation | Framework used for audio playback |
| SF Symbols | Apple's system icon library |
| Xcode 15+ | Development environment |
| Swift 5.9+ | Programming language |
- State handling in SwiftUI (
@State) - Randomisation and conditional logic
- UI design in SwiftUI using VStack, HStack, ZStack
- Score management and button interaction
Built with ❤️ using SwiftUI by Adesh Shukla
-
Clone the repository
git clone https://github.com/yourusername/tesla-swiftui-app.git
-
Open in Xcode: Open WarGame.xcodeproj
-
Run the app on the simulator or your iOS device
