Let’s build a file template for a Swift protocol and a protocol extension. The AppDelegate class contains a single property: window. var window: UIWindow? View-based Testing Depending on what library you are building you may find Snapshot based testing to be a smart way to verify the results of different actions on your views. We recommend using FBSnapShotTestCase, if you are using Specta/Expecta then we include a Pod to improve the syntax. You have just created a template that can create a protocol with an extension and a method. I’m sure, you will find lot’s of other useful templates to create.