• Stars
    star
    25
  • Rank 957,573 (Top 19 %)
  • Language
    Swift
  • License
    MIT License
  • Created over 3 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

๐Ÿ›  A flexible and easy template created to speed up the development of your iOS application based on the MVP pattern.

Model-View-Presenter template

A flexible and easy template created to speed up the development of your iOS application based on the MVP pattern. This template generates all the important components of the MVP pattern, including the Builder.

Table of contents

Installation

You may install this template either using a shell script, or manually, by copying the template to the template directory.

Shell

  • Just run this command in your terminal:

    $ sh install.sh

Manual

  • Open ~/Library/Developer/Xcode/Templates/Architecture/ and move "MVP.xctemplate" folder there. If you do not have Templates or Architecture folders you should create them.

Usage

To create a module using the template, click on "New file..." in the folder where you want to add the module. You may also use shortcut โŒ˜ + N. Finally, find the MVP file in the Architecture section.

Options

This template provides several options so that you can flexibly configure your new modules. Let's look at each in detail.

  • Module: this field simply describes the module name.
  • Storyboad based: this field is used to determine whether your view is built in Storyboard.
  • Subclass of: in this field, you must choose from which class your View should inherit from.
  • Also create XIB file for user interface: if checkbox is checked XIB file will be created inside your module.
  • Also create Router file: if checkbox is checked your module will have Router class.

Structure

After creating the module, you will see that several files were created based on your choice. Unfortunately, folder structuring is only available for Project templates, so all files will be created in one folder.

Contribution

If you struggle with something feel free to open an issue. Pull requests are also appreciated.

License

This template is under the terms and conditions of the MIT license.

MIT License

Copyright (c) 2022 Tamerlan Satualdypov

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

More Repositories

1

TabBar

๐Ÿ“ฑ TabBar โ€“ highly customizable tab bar (i.e. TabView) for your SwiftUI application.
Swift
343
star
2

swiftui-mv-architecture

A more natural architectural approach on writing SwiftUI applications
45
star
3

STTextView

๐Ÿ“ STTextView is a light-weight library that adds a placeholder to the UITextView.
Swift
41
star
4

Hands

๐Ÿ– Memory game with hand gesture recognition that will keep your brain in a good shape!
Swift
39
star
5

awesome-aitu

๐Ÿ“„ A collaborative list of AITU student's projects.
24
star
6

Snitch

๐Ÿ” Snitch is a handy library to access useful information about your application from the Home Screen.
Swift
18
star
7

BarcodeScanner

๐Ÿ” Simple & easy application that helps you to scan both EAN8 and EAN13 barcodes.
Swift
17
star
8

STDiscreteSlider

๐ŸŽš๏ธ STDiscreteSlider โ€“ slider which allows user to choose value only from predefined set of data.
Swift
16
star
9

Java-Design-Patterns

Creational design patterns written in Java
Java
11
star
10

CovidKazakhstan

๐Ÿฆ  Application to track number of coronavirus COVID-19 cases in Kazakhstan.
Swift
11
star
11

Morse

๐Ÿ’ฌ English to Morse ะกode translator written in SwiftUI for WWDC Swift Student Challenge '22. Accepted submission.
Swift
10
star
12

Weather

๐ŸŒค Simple weather GUI-application written in Java using JavaFX.
Java
9
star
13

Java-IT-Company-CLI

Simple CLI application written in Java
Java
8
star
14

database-social-network

ICT project for Final Examination
6
star
15

onl1ner

4
star
16

cryygle

Python
4
star
17

NetworkKit

Swift
3
star
18

eth-parser

Python
2
star
19

weather-ios

Swift
2
star
20

python-permutations

Python
2
star
21

python-coingecko

Python
2
star
22

python-simple-flask

Python
2
star
23

onl1ner.github.io

Your time will come
2
star
24

musical-octo-eureka

My brand-new repository!
2
star
25

python-crypto-scraper

Python
1
star
26

django-image-classifier

Web-application that classifies given image by using Convolutional Neural Network
Python
1
star
27

todo-django

Python
1
star