Generate custom init method automatically
While there's still no way to do this automatically (without installing a plugin), there's a neat trick to convert a list of property declarations to assignments using multiple cursors:
- Copy the list of properties and paste it into your constructor
- Use Shift+Ctrl + click to insert multiple cursors (Shift+Ctrl+↑/↓ work as well)
- Edit with multiple cursors to assign values
Credits go to Paul Hudson: Xcode in 20 Seconds: Multiple cursors
There is no native way of doing this, however you can install XCode extensions that will add support for this.
See this following extension as this will provide the feature you are after (Swift version).