A ready-to-use Tuist template for kickstarting SwiftUI projects and modular frameworks with best practices.
- Quickly scaffold a SwiftUI application or reusable module.
- Organized folder structure for easy project maintenance.
- Pre-configured test targets and resource folders.
Add this template as a Tuist plugin in your Project.swift
:
import ProjectDescription
let tuist = Tuist(
project: .tuist(plugins: [
.git(url: "https://github.com/tddworks/SwiftUITemplate", tag: "v1.0.1")
])
)
Generate a new SwiftUI application using:
tuist scaffold app --name AppName
Resulting Structure:
Root/
├── Tuist/ProjectDescriptionHelpers/Targets/Products/AppName.swift
├── Products/
│ ├── AppName/
│ │ ├── Resources/
│ │ │ └── Info.plist
│ │ └── Sources/
│ │ ├── AppNameApp.swift
│ │ └── ContentView.swift
│ └── AppNameTests/
│ ├── Resources/
│ └── Sources/
│ └── AppNameTests.swift
└── Project.swift
Generate a reusable module with:
tuist scaffold module --name ModuleName
Resulting Structure:
Root/
├── Tuist/ProjectDescriptionHelpers/Targets/Products/ModuleName.swift
├── Modules/
│ ├── ModuleName/
│ │ ├── Resources/
│ │ │ └── Info.plist
│ │ └── Sources/
│ │ └── ModuleName.swift
│ └── ModuleNameTests/
│ ├── Resources/
│ └── Sources/
│ └── ModuleNameTests.swift
Contributions, issues, and feature requests are welcome! Feel free to open an issue or submit a pull request.
This project is licensed under the MIT License.