I have a storyBoard, and I push this. I want to get the name of the controller on the storyBoard before I launch the controller. how?
if let foodSearchVC = UIStoryboard(name: "Search", bundle: nil).instantiateViewController(withIdentifier: "FoodSearchViewController") as? FoodSearchViewController {
let searchView = foodSearchVC.searchContainView
transition = Transition(fromView: seatchContainView, toView: searchView ?? UIView())
navigationController?.delegate = transition
foodSearchVC.hidesBottomBarWhenPushed = true
navigationController?.pushViewController(foodSearchVC, animated: true)
}
This searchView
is nil
, But I want to get searchView