Skip to content
This repository has been archived by the owner on Dec 4, 2018. It is now read-only.

Swift compatibility #27

Closed
benjamingr opened this issue Aug 20, 2014 · 5 comments
Closed

Swift compatibility #27

benjamingr opened this issue Aug 20, 2014 · 5 comments

Comments

@benjamingr
Copy link

Any way we can get swift bridging headers etc?

@Mazyod
Copy link
Contributor

Mazyod commented Aug 20, 2014

I saw in one of the WWDC talks that apple is providing this functionality in iOS 8, so if you're using Swift, it would probably make sense to use apple's implementation?

@insanj
Copy link

insanj commented Aug 20, 2014

Here's the Apple Documentation on Using Swift and Objective-C in the Same Project. It does appear Xcode can generate bridging headers on its own, give it a shot @benjamingr.

To import a set of Objective-C files in the same app target as your Swift code, you rely on an Objective-C bridging header to expose those files to Swift. Xcode offers to create this header file when you add a Swift file to an existing Objective-C app, or an Objective-C file to an existing Swift app.

@benjamingr
Copy link
Author

@MaximF you can target iOS7 (which I intend to do) with Swift.

@insanj As for the automatic bridging - I'll check it out and try ,thanks.

@TNuzzi
Copy link
Contributor

TNuzzi commented Feb 22, 2015

@benjamingr Did you ever get it to work with swift?

@Mazyod
Copy link
Contributor

Mazyod commented Feb 25, 2015

I'm closing this since someone graciously contributed a swift demo

@Mazyod Mazyod closed this as completed Feb 25, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants