Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/balestrapatrick/cleanclosurexcode
An Xcode Source Editor extension to clean the closure syntax.
https://github.com/balestrapatrick/cleanclosurexcode
closure extension swift xcode
Last synced: 10 days ago
JSON representation
An Xcode Source Editor extension to clean the closure syntax.
- Host: GitHub
- URL: https://github.com/balestrapatrick/cleanclosurexcode
- Owner: BalestraPatrick
- License: mit
- Created: 2016-06-21T22:32:30.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-06T15:12:13.000Z (almost 7 years ago)
- Last Synced: 2024-10-13T14:45:27.525Z (24 days ago)
- Topics: closure, extension, swift, xcode
- Language: Swift
- Size: 645 KB
- Stars: 185
- Watchers: 9
- Forks: 15
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 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.
## Requirements
🛠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.
## Author
I'm [Patrick Balestra](http://www.patrickbalestra.com).
Email: [[email protected]](mailto:[email protected])
Twitter: [@BalestraPatrick](http://twitter.com/BalestraPatrick).## License
`CleanClosureXcode` is available under the MIT license. See the [LICENSE](LICENSE) file for more info.