 import CoreLocation
 
 class RestaurantViewController: UIViewController {
+
+    var searchBarConstraint:Constraint?
 
     lazy var searchView : UISearchBar = {
         var search = UISearchBar()


    private func constraintSearchBar(){
        searchView.snp_makeConstraints { (make) -> Void in
            make.width.equalTo(SCREEN_RECT().width-2*MARGIN())
            make.left.equalTo(MARGIN())
            make.bottom.equalTo((self.navigationController?.navigationBar)!)
        }


    override func viewWillAppear(animated: Bool) {
        getLocation()
    }

    override func touchesBegan(touches: Set<UITouch>, withEvent event: UIEvent?) {
        searchView.endEditing(true)
    }

    @objc private func getLocation(){
