Snowonder is Xcode Extension that adds some convenient formatting operations for Import Declarations. This extension is created with latest stable Swift release and fully open source. Snowonder is based on official Apple's XcodeKit which supports only Xcode of versions 8 and higher. If you're looking for a Snowonder that is compatible with Xcode 7.3 version please check legacy branch.
Important!
Features
- Adding Import Declarations from anywhere in code
- Import Declarations categorization
- Alphabetical sorting of Import Declarations in scope of category
- Duplicated Import Declarations filtering
- Both Swift and Objective-C programming languages support
- Load config from JSON. Implemented in config branch, but stopped working after Xcode 10 release. Check #27
- Command Line Interface (CLI)
Installation
- Clone this repo and build Snowonder target via Xcode to get the app
- Close Xcode if it's currently running
- Put Snowonder.app into Applications folder and run it
- Click Enable Extension button
- Enable Snowonder in opened window. See screenshot below
- Launch Xcode and check if Editor > Snowonder Extension is available
Usage
After installation you will be able to format import declarations on any file by selecting Editor > Snowonder Extension > Format Import Declarations or you can just simply setup shoutcut for this command.
Updating
To update Snowonder just replace the old Snowonder.app with updated verson.
Uninstallation
To uninstall just put Snowonder.app into Trash.
License
Released under the MIT License. See LICENSE.md.