title: how to change height of search bar in swift
body: <p>I have been making search bars without navigation on the imageView.
  The search bar height is fixed but i want to change the search bar height. </p>
  
  <p>so i tried </p>
  
  <pre><code>let frame = CGRect(x: 0, y: 0, width: 100, height: 44)
  searchbar.frame = frame 
  </code></pre>
  
  <p>and</p>
  
  <pre><code>searchbar.heightAnchor.constraint(equalToConstant: 200).isActive = true
  </code></pre>
  
  <p>but they don't work.
  I'm using this code </p>
  
  <pre><code>searchBar.isTranslucent = true
  searchBar.searchBarStyle = .minimal    
  </code></pre>
  
  <p>so like this </p>
  
  <p><img src="https://i.stack.imgur.com/jPX7H.png" alt="enter image description here"></p>
  
  <p>please help me change the search bar textfield height.</p>