Xcode 10 Template For MVVM
A MVVM Swift XCode Template to use as a starting point for an iOS apps.
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.
MVVM-AC provides a solid starting point for a new project by providing some up front environment configuration such as:
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.
~/Library/Developer/Xcode/Templates/
.Alamofire
as defaultClone the MVVM-AC Repository & run:
sudo swift install.swift
Xcode should now contain the MVVM-AC template in as a default when creating a new project for iOS.
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.