I have a tableview with a regular searchcontroller.
The searchbar is set to be in the header of the table.
In iOS 9 / 10 this worked as expected.
In iOS 11 it's behaving very oddly. See video here:
I believe part of the problem is that the tableview is inside a UIViewController that is set (with Masonry constraints) to take up the right half of the screen.
I'm hoping this is a bug in iOS 11 as I can't seem to find a way to make it behave properly.
The end of the video shows me rotating the device back and forth between landscape and portrait. Note how the search bar returns, but is not sized like the table and its y anchor moves each time it returns to landscape.
Any ideas?