0

There are similar questions about how to edit Xcode file templates in general:

Swift Custom Xcode Project Templates

Change templates in Xcode

But there is no template file for swift when you create new Swift class via File > New > File... > Cocoa Touch Class > choose swift language. Swift template exists for File > New > File... > Swift file only and it doesn't create "class description".

I need to create a new template (or edit this one) which is similar to this one but:

  • with no top comment lines ("created by ...")
  • with optional NSObject subclassing

In other words I need to create files with the following code:

import Foundation

class SomeVaryingClass {
}

How to make such template?

Gargo
  • 1,135
  • 1
  • 10
  • 21

0 Answers0