SwitchCaseGenerator Save

An Xcode Source Editor Extension that generates a swift switch case statement based on selected enum cases

Project README

Swift Switch Enum Case Generator

An Xcode Source Editor Extension that makes a swift switch case statement with selected enum cases

Generate switch example

Why?

Because Xcode does not autocomplete a switch with enum cases.

Installation

  1. Clone or download the repo
  2. Open SwitchCaseGenerator.xcodeproj
  3. Enable target signing for both the Application and the Source Code Extension using your own developer ID
  4. Select the application target and then Product > Archive
  5. Export the archive as a macOS App
  6. Run the app, then quit (Don't delete the app, put it in a convenient folder)
  7. Go to System Preferences -> Extensions -> Xcode Source Editor and enable the GenerateCases extension
  8. The menu-item should now be available from Xcode's Editor menu

Shortcut

Preferences (⌘ + ,) -> Key Bindings -> Search for "cases" Shortcut example

Open Source Agenda is not affiliated with "SwitchCaseGenerator" Project. README Source: timaktimak/SwitchCaseGenerator
Stars
66
Open Issues
2
Last Commit
7 years ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating