Get Updates By E-mail 

Article Written By:
Johann Dowa

Tool: An Xcode Plugin For Refactoring Swift Code

  •  
  •  
  •  
  •  
  •  

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:

Refactorator

You can find Refactorator on Github here.

An essential plugin for those working with Swift.


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments