Trikalabs
  • Home
  • Best online TDD videos
  • Book Suggestions
  • About Me
  • Contact
Trikalabs
No Result
View All Result

Xcode Templates

by fragi
February 24, 2022
in Tools
Share on FacebookShare on Twitter

Xcode provides with a lot of custom templates. In this article we will explore how we can change them. In general we don’t want to alter teh current one.We can always copy the current and add create a new(altered) custom one.

Let’s first find where these templates are stored. Open Finder and go to the “/Applications/Xcode.app/Contents/Developer/Library/Xcode/Templates/File Templates”.

Now lets Open MultiPlatform > Source> Swift File.xctemplate  and copy  the folder.
in order to create our new template we have first to create a folder(let’s name it custom).

Now we can paste the files inside the Custom folder.

As last step let’s open the file and remove the following line

Swift
1
___FILEHEADER___

Let’s now try to create a new file.

We can see the new option, lets select it and give a name for our new file

If we now open the file, we don’t see the header comment

fragi

fragi

Related Posts

Delete Derived Data – zsh command
Tools

Delete Derived Data – zsh command

April 22, 2022

There are some times that we have to delete the derived data that Xcode produces.There are many ways to achieve...

SwiftGen – Statically reference resources
Tools

SwiftGen – Statically reference resources

February 28, 2022

In this article we can see how we can statically reference strings. Let's look on the following example: As...

Postman – Monitors
Postman

Postman – Monitors

February 27, 2022

So we have created our collection with the API request, we an up and running mock server http://trikalabs.com/postman-mock-server/  and a...

Xcode custom template
Tools

Xcode custom template

February 25, 2022

In this article we will create a template that creates a view and a viewModel files.In the previous article http://trikalabs.com/xcode-templates/...

Newman – Run Postman collections tests
Postman

Newman – Run Postman collections tests

February 27, 2022

Newman is a command-line Collection Runner for Postman. We can use newman to run postman collection tests through cli, which...

Postman – Schema Validation
Postman

Postman – Schema Validation

February 27, 2022

Schema validation of an API request can be used to validate if the API returns the expected response. It is...

Next Post
Xcode custom template

Xcode custom template

Postman – Monitors

Postman - Monitors

SwiftGen – Statically reference resources

SwiftGen - Statically reference resources

  • Advertise
  • Privacy & Policy
  • Contact

© 2019 Trikalabs Ltd. All rights reserved.

No Result
View All Result
  • Home
  • About Me
  • A curated list with the best free online TDD videos
  • Book Suggestions
  • Pinner Code Club

© 2019 Trikalabs Ltd. All rights reserved.