Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

atimca/SwiftInitGenerator

Repository files navigation

Swift Init Generator

Swift 5 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

Option 1:

  • 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

If you have this alert:

"SwiftInitGenerator" can’t be opened because Apple cannot check it for malicious software. malicious

Please watch this video for instruction steps: video

Option 2:

  • Just download source code and build it on your machineπŸ˜‰

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /