Robin Delaporte
Robin Delaporte

Reputation: 585

Bridging header not found in header file

I have this annoying error that stops me from developing some features in my app. Here is the thing:

Now I have this file EventCell.h:

From another file CalendarView.h:

And boom enter image description here

I can't get this issue ! Please help me :)

Upvotes: 1

Views: 469

Answers (1)

jervine10
jervine10

Reputation: 3077

You cannot import the bridging header into a .h file. You should use forward declarations if you need access to a Swift class.

Use @class MyClassName, or @protocol MyProtocolName

Upvotes: 3

Related Questions