Swift Initializer Generator banner
Swift Initializer Generator

Xcode

Swift Initializer Generator Overview

An Xcode Source Editor Extension that will generate a Swift initialiser based on the properties you've selected. You start by highlighting the Swift stored properties from your struct or class that should be included in the initialiser and then select the menu option or use the keyboard shortcut. Swift Initializer Generator will then insert an initialiser that assigns values to the selected properties. This can be really useful if you've made a struct public and now have to provide the initialiser yourself, especially if you have a lot of properties.

Stay on top of new tools for iOS developers

Subscribe to get a convenient weekly roundup of iOS Dev Tools' newest addition
of helpful and time-saving developer tools, services, and SDKs to get your job done faster.