A starter iOS project configured with Xcodegen and hot reload capability using Inject.
- SwiftUI-based iOS application
- Minimum iOS deployment target: 15.0
- Hot reload support using Inject
- Configured with XcodeGen for easier project management
- Includes unit tests and UI tests setup
- iOS 15.0+
- Xcode 15.0+
- XcodeGen
- Install XcodeGen if you haven't already:
brew install xcodegen-
Clone the repository
-
Generate the Xcode project:
xcodegen generate- Open the generated project:
open XcodegenStarter.xcodeprojThe project configuration is managed through project.yml. Key configurations include:
- Version: 1.1.0
- Build: 2
- Bundle ID: com.company.XcodegenStarter
- Dependencies: Inject (for hot reload)
The project includes both unit tests and UI tests:
- Unit Tests: Located in XcodegenStarterTests
- UI Tests: Located in XcodegenStarterUITests
Tests can be run through Xcode's Test Navigator or using the command line:
xcodebuild test -scheme XcodegenStarter -destination 'platform=iOS Simulator,name=iPhone 15'This project supports hot reload functionality using Inject. To use hot reload:
- Run the app in debug configuration
- Modify your SwiftUI views
- Changes will be reflected immediately in the simulator
Hot reload is enabled for both the root view and ContentView.
Created by Dwi Randy H