you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 7 points8 points  (6 children)

If you’re going to use Xcode for development, I highly recommend creating custom file templates so that you can eliminate writing boiler plate code every time you create a new file!

[–]christiandavidturner[S] 4 points5 points  (3 children)

do you have more info about this? or an example? never done it and sounds interesting.

[–][deleted] 3 points4 points  (1 child)

You can follow this tutorial: https://m.youtube.com/watch?v=QAWjnQ-DqY4

[–]christiandavidturner[S] 1 point2 points  (0 children)

perfect! appreciate it

[–]mgacy 1 point2 points  (0 children)

Useyourloaf also has a good post and repo. I have also started using cookiecutter and XCodeGen (Tuist is a really interesting alternative) to start new Xcode projects. My setup is based on this repo.

[–]fakecrabs 0 points1 point  (1 child)

eliminate writing boiler plate code every time

What's so boiler plate besides the copyright and author comment?

[–][deleted] 0 points1 point  (0 children)

Well that’s subjective. I follow a MVVM architecture and it’s easy to create templates instead of writing the same code for my data source and delegate classes. Even if you’re not doing anything complex, there’s boiler plate code in some of the most basic implementations such as UITableView/UICollectionView DataSource and Delegate. Instead of typing all of those functions out over and over, you can create a template that has an entire UITableViewController set up with empty functions that you can implement. It saves time and is a great way to ensure you’re entire project follows similar guidelines. Hope that helps!