I am using UISearchController to present a search bar inside the header view of a tableview:
... self.searchController.hidesNavigationBarDuringPresentation =
for iOS 11 & swift 4, set the line bellow in the viewController resolved my issue (searchBar jump down):
self.edgesForExtendedLayout = .bottom