I had take one ViewController with separate nib file. and my initial root viewcontroller is set in the storyBoard. Now the problem is that when I push to this controller the Vi
Here is a nice generic approach...
extension UIViewController { class func loadFromNib() -> T { return T(nibName: String(describing: self), bundle: nil) } } let vc : OfferDetailViewController = OfferDetailViewController.loadFromNib()