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.
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.
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.