This repository is a template for SwiftUI applications following the Model-View-ViewModel (MVVM) architectural pattern.
ContentView.swift
: The main view of the app.Preview Content
: Contains assets used for previewing the app.Utils
: Contains utility files, includingStringExtensions.swift
andConstants.swift
.View
: Contains the SwiftUI view files, including:HomeView.swift
: The main home view of the app.InitialView.swift
: The initial loading view of the app.AuthView
: A subfolder containing views related to authentication, such asLoginView.swift
,SignUpView.swift
, andAuthView.swift
.
Service
: Contains service files that handle specific functionalities in the app, includingAlertService.swift
(for alert handling) andFireBaseService.swift
(for Firebase-related operations).Model
: Contains model files and protocols, such asItemModel.swift
andItemProtocol.swift
.App
: Contains the main app file (SwiftUI_MVVM_TemplateApp.swift
) andPersistence.swift
(for data persistence).ViewModel
: Contains ViewModel files, includingAuthViewModel.swift
(for handling authentication logic) andHomeViewModel.swift
(for managing the home view logic).
To use this template:
- Click on the "Use this template" button to create a new repository.
- Clone the new repository to your local machine.
- Open the project in Xcode.
- Customize the project as needed, then build and run it on a simulator or physical device.
- iOS 15.0 or later
- Xcode 13.0 or later
This project is available under the MIT license. See the LICENSE file for more info.