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


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

    @objc private func getLocation(){


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