iswiftapp / iswift

Objective-C to Swift Converter
30 stars 3 forks source link

Suggestion: Include Swimat and auto-apply it. #175

Open charlieMonroe opened 8 years ago

charlieMonroe commented 8 years ago

I remember filing some issue here about iSwift not preserving some white space and then I've seen in the release notes that you've worked on some improvements to this matter.

I've recently found out that there are Xcode plugins (open source) that automatically format Swift code according to Apple-made code-style conventions. One example of such plugin (which I use) is Swimat - https://github.com/Jintin/Swimat

I'm not sure how hard it would be to include the relevant part of the plugin (generally 4 classes from https://github.com/Jintin/Swimat/tree/master/Swimat + the categories folder) and auto-apply it after successful conversion of ObjC -> Swift.

Just thought that this could eventually save you a lot of time solving some formatting issues, since this would do everything for you according to the conventions.

drkameleon commented 8 years ago

Interesting suggestion.

I'm obviously doing some re-formatting and code beautification myself, but I would definitely not say no to a better approach...

Let's see how and if this can be integrated it...