Skip to content

Instantly share code, notes, and snippets.

@beyzaince
Created April 30, 2023 13:30
Show Gist options
  • Select an option

  • Save beyzaince/ef64172b45a2cf2266b106ddfb62e9c6 to your computer and use it in GitHub Desktop.

Select an option

Save beyzaince/ef64172b45a2cf2266b106ddfb62e9c6 to your computer and use it in GitHub Desktop.
final class SourceEditorCommand: NSObject, XCSourceEditorCommand {
let stubGenerator = StubGenerator()
func perform(with invocation: XCSourceEditorCommandInvocation,
completionHandler: @escaping (Error?) -> Void ) -> Void {
stubGenerator.genarateStub(with: invocation, completionHandler: completionHandler)
completionHandler(nil)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment