Giter Club home page Giter Club logo

swiftui-template-mvvm's Introduction

SwiftUI-Template-MVVM

A ready-to-use SwiftUI Clean MVVM template to use when creating a new project including Core Data, a generic type of data source for your ViewModels, a customizable ViewModelDataSource protocol and a standard App Configuration.

This template is intended to reduce the amount of time it takes to create and setup a new project with SwiftUI.

It includes a sample project that contains:

  • A clean MVVM Design Architecture (Model - View - ViewModel) with a subfolder for each category,
  • Ready-to-go generic superclass to handle every type of data source used in your views,
  • CoreData setup,
    • an example Item and its extension for custom methods and computed properties,
  • Sample views using Core Data objects as data source, in a List and Detail View
    • HomeView
    • DetailsView
  • Tests cases,

Feel free to clone this template and to reuse it!

XCode, target iOS 13

Installation

git clone https://github.com/christophedellac/SwiftUI-Template-MVVM

Then, rename the project as you wish and start having fun! You can leave it as is, or rename/delete the existing objects.

Release History

  • 1.1.0

    • Implementation of a generic type for your view's data source
    • Creation of a ViewModelDataSource protocol for your ViewModels
    • Better XCT test cases
  • 1.0.0

    • The first proper release
    • CHANGE: Add all files
  • 0.0.1

    • Work in progress

Meta

Christophe Dellac

No licence, you are free to reuse this template!

https://github.com/christophedellac

swiftui-template-mvvm's People

Contributors

metazz1 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.