I'm trying to pass data from an objective-c ViewController to a Swift ViewController and I'm getting this error in my Objective-C controller:
Property 'type' not found on object of type 'UIViewController'
My Objective-C code:
UIViewController *mainController = [self.storyboard instantiateViewControllerWithIdentifier:@"IdentitySelfieViewController"];
mainController.type = "passport";
[self.navigationController pushViewController:mainController animated:YES];
Import into the Bridging-header file:
#import "PassportViewController.h"
And created the corresponding String into my Swift View Controller
let type = ""
Thank you for any help