Swimat is an Xcode plug-in to format your Swift code.
There are three way to install.
- Install via homebrew-cask
brew cask install swimat
-
Download the App directly.
https://github.com/Jintin/Swimat/releases/download/v1.5.1/Swimat.zip -
Clone and archive to Mac App by yourself.
After installation, you should open the Swimat.app
once to make the functionality works.
In the Xcode menu click [Editor] -> [Swimat] -> [Format] then the current active file will reformat.
You can also create a hot-key in [Xcode] -> [Preferences..] -> [Key Bindings], if you don't have any prefernce you can set as โ + โง + L.
Check [System Preferences] -> [Extensions] -> [Xcode Source Editor] -> [Swimat] is checked.
Bug reports and pull requests are welcome on GitHub at https://github.com/Jintin/Swimat.
The module is available as open source under the terms of the MIT License.