Swimat is an Xcode plug-in to format your Swift code.
There are three way to install.
- Install via homebrew-cask
# Homebrew previous version
brew cask install swimat
# Homebrew latest version
brew install --cask swimat
-
Download the App directly.
https://github.com/Jintin/Swimat/releases/download/1.7.0/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.