I have implemented the code available in the below link to get the WiFi gateway address.
How to get the WIFI gateway address on the iPhone?
When I am trying to access the method (written in Objective C) which returns the gateway address, from the Swift class, it shows the following error. "Use of undeclared type 'DummyClass' "
The swift code snippet where I am getting error is:
class ViewController: UIViewController,UIImagePickerControllerDelegate, UINavigationControllerDelegate {
var instanceOfCustomObject: dummyClass = dummyClass() //While initialising instanceOfCustomObject, the above said error comes.
PS: Bridging header for integration of Objective-C code with Swift code also has been added.
Any help to resolve the above issue is highly appreciated.Thank You!!