How to access an internal Swift class in Objective-C within the same framework ?

Working on a mixed framework. <XXX/XXX-Swift.h> imported inside the Obj-C file but the internal classes are not visible, only the public ones.


The documentation clearly states the internal clasees should be available between Swift and Obj-C:


Importing Swift into Objective-C

To import a set of Swift files in the same framework target as your Objective-C code, you don’t need to import anything into the umbrella header for the framework. Instead, import the Xcode-generated header file for your Swift code into any Objective-C

.m
file you want to use your Swift code from.

Because the generated header for a framework target is part of the framework’s public interface, only declarations marked with the

public
modifier appear in the generated header for a framework target. You can still use Swift methods and properties that are marked with the
internal
modifier from within the Objective-C part of your framework, as long they are declared within a class that inherits from an Objective-C class. For more information on access-level modifiers, see Access Control in The Swift Programming Language (Swift 2).

I normally never declare my Swift classes public, and they are always visible from Objective-C. They must, of course, be representable in Objective-C. Do they show up when you mark them as public?

It works when building an app, but when creating a framework, this behavior changes.

How to access an internal Swift class in Objective-C within the same framework ?
 
 
Q