How to generate "Bridging-Header.h"

15 views
Skip to first unread message

amine...@gmail.com

unread,
Dec 2, 2020, 1:28:24 PM12/2/20
to CodenameOne Discussions
Hi,
How do I generate a "Bridging-Header.h" file for importing Swift in Objective-C Native Interface ??? 


Steve Hannah

unread,
Dec 2, 2020, 2:56:19 PM12/2/20
to codenameone...@googlegroups.com
I recently went through this myself, but I don't remember the details on how I generated the bridging header.

But for reference.  Here is the bridging header for my Swift Framework

This framework is used by a native interface, using the `@class` keyword in the .h file





On Wed, Dec 2, 2020 at 10:28 AM amine...@gmail.com <amine...@gmail.com> wrote:
Hi,
How do I generate a "Bridging-Header.h" file for importing Swift in Objective-C Native Interface ??? 


--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/6b532df3-bc10-4e49-be78-cc8fd429e72bn%40googlegroups.com.


--
Steve Hannah
Software Developer
Codename One

Steve Hannah

unread,
Dec 2, 2020, 2:56:44 PM12/2/20
to codenameone...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages