Giter Club home page Giter Club logo

swiftui-mvvm-template's Introduction

SwiftUI-MVVM-Template

This repository is a template for SwiftUI applications following the Model-View-ViewModel (MVVM) architectural pattern.

Project Structure

  • ContentView.swift: The main view of the app.
  • Preview Content: Contains assets used for previewing the app.
  • Utils: Contains utility files, including StringExtensions.swift and Constants.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 as LoginView.swift, SignUpView.swift, and AuthView.swift.
  • Service: Contains service files that handle specific functionalities in the app, including AlertService.swift (for alert handling) and FireBaseService.swift (for Firebase-related operations).
  • Model: Contains model files and protocols, such as ItemModel.swift and ItemProtocol.swift.
  • App: Contains the main app file (SwiftUI_MVVM_TemplateApp.swift) and Persistence.swift (for data persistence).
  • ViewModel: Contains ViewModel files, including AuthViewModel.swift (for handling authentication logic) and HomeViewModel.swift (for managing the home view logic).

Usage

To use this template:

  1. Click on the "Use this template" button to create a new repository.
  2. Clone the new repository to your local machine.
  3. Open the project in Xcode.
  4. Customize the project as needed, then build and run it on a simulator or physical device.

Requirements

  • iOS 15.0 or later
  • Xcode 13.0 or later

License

This project is available under the MIT license. See the LICENSE file for more info.

swiftui-mvvm-template's People

Contributors

gtrows avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.