An Xcode Source Editor extension to clean the closure syntax.
Latest commit 305234f Sep 19, 2016 @BalestraPatrick Update to Swift 3.0
Failed to load latest commit information.
CleanClosureSyntax.xcodeproj Update to Swift 3.0 Sep 19, 2016
CleanClosureSyntax Update to Swift 3.0 Sep 19, 2016
Cleaner Update to Swift 3.0 Sep 19, 2016
.gitignore Initial commit Jun 21, 2016
LICENSE Add license Jun 22, 2016 Update to Swift 3.0 Sep 19, 2016
result.gif Change demo gif Jul 3, 2016

Clean Closure - Xcode Source Editor Extension

Clean Closure is a simple Xcode Source Editor Extension for Xcode 8. It parses each line of a file to simplify the syntax of closures in your Swift code by removing the useless ().

The code is pretty straighforward and it uses a NSRegularExpression to find out where a closure is by looking for (, ) and in characters.


🛠 Xcode 8.0 and Swift 3.0.

Please run sudo /usr/libexec/xpccachectl and restart your Mac before running the extension if you are on macOS 10.11 El Capitan.


I'm Patrick Balestra. Email: Twitter: @BalestraPatrick.


CleanClosureXcode is available under the MIT license. See the LICENSE file for more info.