UISearchController disappears when pushing a new UIViewController

171 Views Asked by At

I'm currently working with an example from Raywenderlich: UISearchController-Tutorial (The finished project is at the end of their article or here) and I noticed that when I execute a search and click on one of the results, during the push transition, the UISearchController disappears. It's visible on this video: here

Before selecting a result

During the transition to the new VC

I run this example with Xcode 10, iOS 12 (sim: iPhone 8)

Any idea / pointer would be deeply appreciated

Cheers.

1

There are 1 best solutions below

1
On

Its default in iOS12. Just look at the Apple-Mail App. There it is the same. Actually you dont need the searchbar, when you are showing another VC