
EditKit Pro provides a suite of tools to help you write better, cleaner, and more efficient code. Whether you need to quickly format your code, create Codable models, generate mock data, or move around in SwiftUI more efficiently, EditKit Pro has you covered.
This is an open-source Xcode Editor Extension with a variety of mini-tools for iOS / macOS Developers.
Demos of EditKit can be found on the blog post and this YouTube Video.
The current version of EditKit supports the following features:
MARK extensions#ifdefNSLocalizedStringThe most convenient way of installing the current release is through the App Store. Once installed, you'll need to open System Preferences -> Extensions -> Enable EditKit Pro.
If EditKit Pro is not visible in Extensions, this may be due to multiple conflicting Xcode installations.
Alternatively, you can clone this Xcode project:
EditKit extension. The extension will not appear in Xcode unless it is signed correctly.EditKit extension and hit Run.EditKit.Please make sure you only have one valid installation of Xcode on your machine and have a valid Apple Developer account as signing the extension will be required in order to run it locally.
All contributions are welcome. Just fork the repo and make a pull request.
EditKit, create a new entry in EditorCommandIdentifier and a assign a unqiue key for your new command.EditKit extension's Info.plist, add an entry in XCSourceEditorCommandDefinitions for your new command.EditorController.swift, add a case to the handle function for your new command.XCSourceEditorCommand class (i.e. BeautifyJSONCommand) or creating a class that operates on the XCSourceEditorCommandInvocation provided by the Xcode Editor Extension (i.e. AlignAroundEqualsCommandclass AlignAroundEqualsCommand {
static func perform(with invocation: XCSourceEditorCommandInvocation, completionHandler: (Error?) -> Void) {
...
}
}
or
class BeautifyJSONCommand: NSObject, XCSourceEditorCommand {
func perform(with invocation: XCSourceEditorCommandInvocation, completionHandler: (Error?) -> Void) {
....
}
}
All files in the Third Party folder are modified versions of the open source libraries mentioned below.
EditKit would not have been possible without the help and inspiration from these open source libraries:
Note: Many of their original implementations have modified to support Swift 5.7+ and to fix bugs.
If you have any questions, feel free to message me at [email protected] or on Twitter.