Skip to content

jakubkurgan/MVVM-AC

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

MVVM-AC

Platform License

MVVM-AC

A MVVM Swift XCode Template to use as a starting point for an iOS apps.

Example How to Use

Introduction

From building a prototype, development app, to a full blown production app, MVVM-AC was developed with a goal to improve development time faster, streamline development, reduce development, and ensure the long term flexibility of the project from prototype to production. Easy to use for junior or senior iOS Developer

Over the years developing, my approach to the development has drastically changed, but one thing hasn't, the project lead always needs to be aware of the architecture, configure the environment as such, and ensure the application's architecture can evolve over time.

Features

MVVM-AC provides a solid starting point for a new project by providing some up front environment configuration such as:

  • Configured Project Scaffolding
  • Default Frameworks, via Podfile
  • Support Storyboard, Xib, or Fullcode Generator
  • Support internet checker, server error state, alert message, loading state
  • More sample code
  • On progress any update

MVVM-AC also makes it easy extend on the project structure by providing some file templates that the base layer making it easy to integrate into the architecture w/ some guided comments as needed.

  • Auto Generate - ViewController.
  • Auto Generate Services Layer - Networked & Standalone
  • Auto Generate Model
  • Auto Generate ViewModel
  • Auto Generate Protocol
  • Many more to come ...

screen shot 2018-09-13 at 10 44 23

Installation

Method 1 :

  1. Clone the MVVM-AC Repository into your developer folder
  2. Copy MVVm-AC-Template Folder into ~/Library/Developer/Xcode/Templates/.
  3. Required cocoapods libs Alamofire as default

Method 2 :

Clone the MVVM-AC Repository & run:

sudo swift install.swift

Added Function

Xcode should now contain the MVVM-AC template in as a default when creating a new project for iOS.

Create Project

It's as simple as selecting the MVVM-AC template, and following the usual process in creating a new project. Once created, the project will ask to input Model name and View Type (Storyboard, Xib File, or Fullcode) to generate a pre-configured scaffolding as follows.

After the project has been created, the first step is to download, and install, the latest frameworks by navigating to the project's root directory, and running the following command:

// iOS
pod init or
pod install  `when you ready init pod library`

The last step to perform is to build (⌘B) the project in Xcode, with an expected failure on the first try, and a successful one on the next.

About

Xcode 10 Template For MVVM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 100.0%