phldavies
05/22/2020, 1:00 PMNSBundle for a K/N iOS Framework from within the framework? I’d like to use NSBundle.bundleForClass(ObjCClass) however this seems to return the Application bundle. If I call Bundle.init(for: ClassFromFramework.self) in Swift I get the right bundle.phldavies
05/22/2020, 1:01 PMbundleForClass I’m creating a class in iosMain as follows:
class BundleReferenceClass: NSObject() {
companion object: NSObjectMeta()
}
and calling NSBundle.bundleForClass(BundleReferenceClass)