I have my UISearchBar being part of the navigation bar like:
UISearchBar
let searchBar = UISearchBar() //some more configuration to the search bar .....
All you have to do is to subclass UISearchBar and override "intrinsicContentSize":
@implementation CJSearchBar -(CGSize)intrinsicContentSize{ CGSize s = [super intrinsicContentSize]; s.height = 44; return s; } @end