Coder Social home page Coder Social logo

felipegus / xcodetemplates Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 45 KB

A repository to organize the templates I daily use when working with Xcode. Feel free to use/modify any of them ๐Ÿ˜„! If you see any improvement/error just submit a PR.

License: MIT License

Swift 100.00%

xcodetemplates's Introduction

Xcode File Templates

A repository to organize the templates I daily use when working with Xcode.

Feel free to fork and use/modify any of them ๐Ÿ˜„!

If you see any improvement/error just submit a PR.

Current Templates.

  • VMVC - A small template for the creation of a View Controller and a View Model with reactive communication between them.
  • VP - A template that creates two files, one corresponding to the presenter and the other to the view.
  • Coordinator - A template that lays the foundation of a coordinator class.
  • Managers - Templates for objects that configure and control tables and collections views.

Future Planned Templates.

  • View Controller Presenter - A template like the VMVC but with a presenter in place of the viewModel with interface for the communication between the two.

  • DataSource/Delegate Objects - Objects that serve as dataSources/delegates of Table and Collection Views.

  • Coordinator - A template for the creation of coordinators (Flow controllers).

  • VIPER - According to my current knowledge, File Templates in xCode do not support the separation/creation of groups for these files, if anyone knows any different do tell me how it could be done ๐Ÿ˜€ . The option I found is to use and external tool to generate these files.

    They even have a version of the viper template already made.

Requirements

  • You just need Xcode really :).

** Some templates use third party Libraries, like the RxSwift for the VMVC template, I'm planning on reducing dependencies in future, but for now, just remove them if you don't need it. **

How to use

To use these templates you just have to put their folders where Xcode will look for them.

If you want it to appear at the beggining of the page when creating a new file put them here:

/Applications/Xcode.app/Contents/Developer/Library/Xcode/Templates/File\ Templates/

You will have to do this every time you get a new installation of Xcode though, and the template will appear only in the version of xcode you put these on.

If you want your templates to be shared by all Xcode versions, not depending on you to add them every single installation, put them here.

~/Library/Developer/Xcode/Templates/File\ Templates

And that's about it. Any doubts feel free to mail me :)

Further Help

To learn how to modify these templates, you could look at these amazing articles.

https://medium.com/@dasdom/creating-a-smart-xcode-file-template-b5f2d7c8594b

https://medium.com/@dima.cheverda/xcode-9-templates-596e2ed85609

http://jeanetienne.net/2017/09/10/advanced-xcode-template.html

Author

FelipeGus, [email protected]

License

XcodeTemplates is available under the MIT license. See the LICENSE file for more info.

xcodetemplates's People

Contributors

felipegus avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.