I’ve mentioned a number of Xcode plugins to aid in overcoming Xcode’s limitations, and unfortunately Xcode still has some limitations when working with Swift code.
Here’s an Xcode plugin from John Holdsworth that provides basic Refactoring of Swift Code called Refactorator that helps you to overcome one of those limitations. Refactorator provides a nice interface for previewing your Refactoring.
As the readme states:
Refactorator is an Xcode plugin for refactoring Swift code. It will rename public or internal vars, functions, enums etc. For private and local entities use Xcode’s existing “Edit All in Scope” functionality. It uses SourceKit, an XPC service distributed with Xcode to parse your project’s Swift sources to find symbol references.
This image from the readme shows Refactorator in action:
You can find Refactorator on Github here.
An essential plugin for those working with Swift.
Original article: Tool: An Xcode Plugin For Refactoring Swift Code
©2016 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.