Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Latest commit 7293c45 Dec 3, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Recources readme update Dec 3, 2018
SourceEditorExtension Working Copy Nov 30, 2018
SwiftInitGenerator.xcodeproj appearance Nov 30, 2018
SwiftInitGenerator Merge branch 'appearance' Nov 30, 2018
SwiftInitGeneratorTests initial Nov 29, 2018
.gitignore Initial commit Nov 29, 2018
LICENSE Initial commit Nov 29, 2018
README.md readme update Dec 3, 2018

README.md

Swift Init Generator

Swift 4.2 atimca

Swift Init Generator is an Xcode Source Editor extension that makes it easy to generate your init, especially for public types.

Features

  • No longer hack your Xcode to install custom plugins.
  • 📃 Generate Init from any selected variables, filter static, computed and etc.

Examples

Generation From The Selected Lines

Swift Init Generator - Example

Installation

  • Download latest SwiftInitGenerator package from the Releases.
  • Copy SwiftInitGenerator to your Applications folder.
  • Launch SwiftInitGenerator once. You can close it immediately afterwards.
  • Go to System Preferences > Extensions > Xcode Source Editor > select Swift Init Generator

Swift Init Generator - Installation

Setting Hotkey in Xcode

  • Open Xcode
  • Go to Xcode > Preferences > Key Bindings
  • Type 'Swift Init Generator' in search field
  • Assign + + + I to Generate Init From Selected Lines

Swift Init Generator - Hotkeys

Feedback

Pull requests, issues and suggestions are warmly welcome.

You can’t perform that action at this time.