calloutview icon indicating copy to clipboard operation
calloutview copied to clipboard

convert to swift

Open hixfield opened this issue 9 years ago • 7 comments

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

hixfield avatar Jun 06 '15 22:06 hixfield

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

nfarina avatar Jun 06 '15 23:06 nfarina

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

hixfield avatar Jun 06 '15 23:06 hixfield

What are the benefits to doing so in your view?

nfarina avatar Jun 07 '15 12:06 nfarina

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?

hixfield avatar Jun 07 '15 12:06 hixfield

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?

nfarina avatar Jun 07 '15 18:06 nfarina

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

hixfield avatar Jun 08 '15 20:06 hixfield

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"

ori-levi avatar Oct 09 '15 07:10 ori-levi