Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convert to swift #86

Open
hixfield opened this issue Jun 6, 2015 · 7 comments
Open

convert to swift #86

hixfield opened this issue Jun 6, 2015 · 7 comments

Comments

@hixfield
Copy link

hixfield commented Jun 6, 2015

would be super nice to convert this to swift.
No?

@nfarina
Copy link
Owner

nfarina commented Jun 6, 2015

Super nice for those with all-Swift projects; not so nice for everyone else :)

@hixfield
Copy link
Author

hixfield commented Jun 6, 2015

Do you think there could be a reason why its not possible to convert to swift?

@nfarina
Copy link
Owner

nfarina commented Jun 7, 2015

What are the benefits to doing so in your view?

@hixfield
Copy link
Author

hixfield commented Jun 7, 2015

I see your point. Functionality wise I think it would not matter. Currently I am working on a full swift project and included the .h and .m file(s) and I am using a bridging header to use the obj-c code in my swift code. It works fine. However I try to get my project to only use native swift code :) so its more from an idealistic point of view I guess... Do you see any (other) advantages?

@nfarina
Copy link
Owner

nfarina commented Jun 7, 2015

The only advantage I can think of is for all-Swift projects to be a bit cleaner. What are the downsides? What happens when you drag a swift file into an existing all-ObjC project?

@hixfield
Copy link
Author

hixfield commented Jun 8, 2015

If you drag a swift file in an objc project I dont know for sure what happens... Should test it...

@ori-levi
Copy link

ori-levi commented Oct 9, 2015

I think there is bridge for swift to obj-c...
https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/BuildingCocoaApps/MixandMatch.html

There is section called "Importing Swift into Objective-C"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants