dzenbot / XCSwiftr

An Xcode Plugin to convert Objective-C to Swift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't find "Convert to Swift" button

lfarah opened this issue · comments

Hey, I really liked the idea of your app and I'd like to add it on Awesome-iOS, but right now I can't find the "Convert to Swift" button

screen shot 2016-04-11 at 6 26 50 pm

I found the problem: the app only detects .h and .m files, but if I pasted some obj-c code on my .swift file, the "Convert to Swift" option won't show up

I'd be cool if converting objc code from .swift files would work

This is more like a feature than a bug. The plugin intentionally doesn't show the option if you're on a swift file since, well, why would you?

Would be great to add this plugin to Awesome-iOS bw!

@dzenbot the way I saw this plugin is that I'd be happily coding my swift project and then I had a problem and I only found an Obj-C solution on StackOverflow. I'd copy and paste this code in my swift file where I'm having this problem and convert it to Swift.

@dzenbot I was thinking about doing it and that's why I was testing. I'll be adding today or tomorrow. Thanks for the library.

Ok, your use case is reasonable. Maybe instead of having to paste in your Swift code, we could offer a way to open up the modal in alternative way instead of using the code editor's contextual menu...

Closing this for now. If more people expect this use case, we can consider to allow the menu to show up in Swift classes tol.