 }
 
 
-
 // MARK: - Selectors
 
 @objc extension NavigationSearchController {

    fileprivate weak var vcRightButton: UIBarButtonItem?
    
    
    
    // MARK: - Public functions
    
    open override func dismiss(animated flag: Bool, completion: (() -> Void)? = nil) {

    public func willDismissSearchController(_ searchController: UISearchController) {
        vc?.navigationItem.titleView = nil
        vc?.navigationItem.rightBarButtonItem = vcRightButton
        vc?.viewWillAppear(true)
        let fadeOut = { searchController.view.alpha = 0 }
        UIView.animate(withDuration: 0.5, animations: fadeOut) {
            finished in searchController.view.alpha = 1
