Articles
5 Useful Xcode Extensions to Make Work Easier
Power up your weapon!

Developers are soldiers, and an IDE is a weapon. A soldier’s greatest responsibility is always to power up his weapon and make good use of it.
Xcode is the best weapon for iOS and macOS developers. Here is 5 useful extension which will power up your weapon.
1. SwiftPlantUML
A class diagram is Unified Modeling Language (UML) which describes the structure of software by showing classes, their attributes, operations, and the relationships among them. This extension will help you to generate and view a class diagram. This Extension makes use of the SwiftPlantUML Swift package. The installation procedure is simple. You can install it by usingHomebrew
.
2. SwiftFormat
I believe every developer uses some kind of code formatting. It is a necessity. isn’t it? Because coding is an art and no one wants to mess up with an art. Also when lots of developers work on a project it is a necessity to have a common coding style. This extension will help you to achieve this. At the time of writing this extension has 5.5k stars. You can install it by usingHomebrew
.
3. Import
As a developer, we need to be more productive and save time as much as possible. Suppose you are in the last line of code (maybe on the 1000th line) and now you have to scroll up just to add an import. It is kind of a waste of time and sometimes you may lose concentration. This extension can help you in this kind of scenario and save some time.
4. SwiftMockGeneratorForXcode
Testing is one of the important parts of software engineering. This extension will help you to generate stub, spy, dummy, and partial spy classes automatically. Now you may ask what are these classes. Then let’s learn some theories.
- Stubs provide canned answers to calls made during the test, usually not responding at all to anything outside what’s programmed in for the test (reference).
- Spies are stubs that also record some information based on how they were called. One form of this might be an email service that records how many messages it was sent (reference).
- Dummy objects are passed around but never actually used. Usually, they are just used to fill parameter lists (reference).
- Partial spies are spies that can also forward calls to the original implementation.
5. XVim2
I believe from the name you have already understood that this extension provides a Vim experience without the need to give up any Xcode features. If you do not know what Vim is, According to the official documentation:
Vim is an advanced text editor that seeks to provide the power of the de-facto Unix editor ‘Vi’, with a more complete feature set. It’s useful whether you’re already using vi or using a different editor.
This extension has 2.3k stars and it is well maintained.
If you know of any other beautiful Xcode extension, please share it in the comment. Until we meet again…Cheers!
Full Article: Farhan Tanvir @ Better Programming
