Is it possible to use a swift enum in an objective C header?

From what I understand, you can only import Swift stuff in .m files and there is no way to forward declare an enum in Objective C.


See:


http://stackoverflow.com/questions/33487850/how-to-reference-swift-enum-in-objective-c-header

Replies

The best solution right now is just to declare the enum in your Objective-C side and import it into Swift via your bridging header (for apps) or umbrella header (for frameworks).