Skip to content

ml-opensource/ios-template

Repository files navigation

iOS Template

Scaffolding for starting a new project in the MVVM style using SwiftUI and SPM

Before you use this template

Make sure you have familiarized yourself somewhat with the concepts in the MVVM playground located here

Installation

  1. Clone repo
  2. Allow packages to resolve
  3. Name your project
  • Rename project: Tap main project, top left -> File inspector -> Identity and Type -> Name -> enter new name and tap 'enter' -> Tap 'Rename'
  • Rename the scheme: Tap the scheme -> Manage schemes -> change the name of the PROJECT_NAME scheme.
  1. In EnvVars and LiveDependencies in the main target replace placeholders with your own environment values
  2. In .xcconfig files insert your own urls
  3. Insert the project specific NStack keys in the NStack.plist file, located in the App folder
  4. Insert your own colors in Colors.xcassets and Colors.swift in Style bundle
  5. Insert your own fonts in /Fonts and Fonts.swift in Style bundle
  6. Fix font names in RegisterFonts.swift
  7. Drop your own shared assets in Assets.xcassets and Assets.swift in Style bundle
  8. Delete the .git folder and run git init, so you're using a new repo for your project and not the template repo