10

In iOS 11 Apple presented new search bar, but yet in iOS 11.2.2 developer have push\pop animation bug when both view controllers have searchController. Apple demonstrate their vision in Files app. Do someone know how do it?

Demo

edit#1

Question with broken animation. Broken UISearchBar animation embedded in NavigationItem

Tim Hazhyi
  • 161
  • 1
  • 7

1 Answers1

0

enter image description here

you can add some line of code in ViewController -viewDidLoad some line of code for search bar in navigation bar

self.navigationController?.navigationBar.prefersLargeTitles = true
self.navigationItem.largeTitleDisplayMode = .automatic
let search = UISearchController(searchResultsController: nil) // Declare the searchController
self.navigationItem.searchController = search