Question: I have this query:

```
SELECT * FROM Takhfif WHERE TakhfifName LIKE '%keyword%' AND CityID=2

```

This is an example. I have dynamic version of this code.

This code is working great on local but not working in host!

My local SQL Server is 2014
and the host SQL Server is 2012.

If this code doesn't work on SQL Server 2012 what code should I use for an exact search?

Answer: 
May be this code help you. I am changing a view (panView) height constraint with pan gesture.

```
@IBOutlet weak var h: NSLayoutConstraint!
@IBOutlet weak var panView: UIView!

override func viewDidLoad() {
    super.viewDidLoad()
    let gesture = UIPanGestureRecognizer(target: self, action: #selector(self.pan(_:)))
    panView.addGestureRecognizer(gesture)
}

@objc func pan(_ pan: UIPanGestureRecognizer) {

    let translation = pan.translation(in: panView)

    if pan.state == .began {
    } else if pan.state == .changed {
        h.constant = h.constant - translation.y
        pan.setTranslation(CGPoint.zero, in: panView)
    } else if pan.state == .ended {
        // You can handle this how you want.
    }
}

```
Use UIView animation on set frame with 0.05 of animation duration.

```
class func animate(withDuration duration: TimeInterval, animations: @escaping () -> Void)

```