Skip to content

Set of New file... templates for Xcode for common iOS architecture patterns

License

Notifications You must be signed in to change notification settings

goncharik/iOS-architecture-xcode-templates

Repository files navigation

iOS Architecture Patterns Xcode Templates

License

Welcome to the iOS Architecture Patterns Xcode Templates project! This repository provides a set of Xcode templates that make it easier to build iOS apps using common architecture patterns.

Table of Contents

Introduction

When developing iOS apps, it's important to follow well-established architecture patterns to maintain clean and maintainable code. This project aims to simplify the process of making new modules of the app with the following architecture patterns:

  • MVVM (Model-View-ViewModel) in both UIKit and SwiftUI
  • MVVM+C (Model-View-ViewModel + Coordinators) in both UIKit and SwiftUI
  • TCA (The Composible Architecture) in SwiftUI

These Xcode templates will help you kickstart your iOS project with your preferred architecture pattern, saving you time and ensuring a consistent codebase.

Features

  • Easily create new modules for your iOS projects with your choice of architecture pattern.
  • Customizable templates to suit your project's specific needs.
  • Comes with boilerplate code to get you started quickly.
  • Support for both UIKit and SwiftUI

Installation

To install the Xcode templates, simply run the install-xcode-templates.sh script provided in this repository.

./install-xcode-templates.sh

This script will copy the templates to the appropriate directory in your Xcode templates folder.

Usage

  1. Open Xcode.
  2. Open your project or create new one
  3. Create a new file (File > New > File...).
  4. Choose the "iOS" tab and scroll down to "Architecture" section
  5. You should see new templates like "MVVM+C SwiftUI", "MVVM+C UIKit", and "TCA Feature"
  6. Select your preferred architecture pattern, and Xcode will generate files for the whole module for you

Contributing

I welcome contributions from the community! If you'd like to contribute to this project, please follow these guidelines:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes and commit them.
  4. Push your changes to your fork.
  5. Open a pull request, providing a clear description of your changes.
  6. I'll review your pull request as soon as possible. Thank you for helping make this project better!

License

This project is licensed under the MIT License - see the LICENSE file for details.


If you have any questions, encounter issues, or would like to contribute, feel free to get in touch or open an issue on this repository. I appreciate your support and contributions!

Happy coding! 🚀

About

Set of New file... templates for Xcode for common iOS architecture patterns

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages