A template to allow Xcode to generate a new Swift file saving two bits of work:
- Removing the header comment, and
- Importing from
UIKit
instead of fromFoundation
, as that's more common in iOS apps
Clone this repo into ~/Library/Developer/Xcode/Templates/File Templates/MultiPlatform/Source
(creating any missing directories)
Then, when creating a new file in Xcode, you should see "No Comment UIKit Swift File" as the first option.
https://developer.apple.com/forums/thread/711305
MIT