There is a class object in the code, but its type is undeclared and cannot be used

63 Views Asked by At

Sorry for the title, it may sound confusing, but actually here is the problem.

I am using an imported module 'DJISDK' and I have an object in use from that library. When I'm trying to get the type of that object, it gives me the type.

     print(type(of: object))

I get the type which is DUXCameraSettingsNavigationBar. But when I am trying to check the type of object like this

     if object is DUXCameraSettingsNavigationBar { }

I am getting an error that says - "Use of undeclared type 'DUXCameraSettingsNavigationBar'".

The searches of that class in the podfiles didn't give any results. Importing all the other related modules didn't help either.

Please explain me how is that possible, and if I can somehow access that class, please tell me how.

1

There are 1 best solutions below

0
On

I checked the API reference for the DUX library of the DJI SDK. It seems like you are trying to access an internal/private object. For more try looking up the official DJI DUX Documentation page here: DJI DUX Documentation. Hope this helps!