I am working on an app written in Objective C. I have created some swift class and by creating the bridging header I am able to work with the swift file. Also, I am able to access the swift class from objective c class. Now I want to access the objective c class from the swift class but I am unable to do it. Please help to solve my problem
import UIKit
@objc class OptionsViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
navigationController?.navigationBar.isHidden = true
}
//MARK:- Actions
@IBAction func cameraGalleryButtonWasPressed(_ sender: UIButton) {
let camera = CameraPickerViewController()
self.navigationController?.pushViewController(camera, animated: true)
}
I am getting error like:-
Use of unresolved identifier CameraPickerViewController