I was hoping to define a class in Swift (descended from NSObject) and write a handful of methods in a separate .mm (Objective-C++) file, but I can't figure out how to do that. Should it be a category? I can't declare the method in a header file to include in the Bridging Header, because that can't see the Module-Swift.h autogenerated interop header.
Not sure if this is possible. Any suggestions? Thanks!
You can probably still declare the methods in a file included in the bridging header. Instead of importing Module-Swift.h in the header, use a forward declaration (@class MyClassName;) in the header, and import Module-Swift.h in the implementation file.