An Xcode Source Editor Extension that makes a swift switch case statement with selected enum cases
Because Xcode does not autocomplete a switch with enum cases.
- Clone or download the repo
- Open
SwitchCaseGenerator.xcodeproj
- Enable target signing for both the Application and the Source Code Extension using your own developer ID
- Select the application target and then Product > Archive
- Export the archive as a macOS App
- Run the app, then quit (Don't delete the app, put it in a convenient folder)
- Go to System Preferences -> Extensions -> Xcode Source Editor and enable the GenerateCases extension
- The menu-item should now be available from Xcode's Editor menu