Do a temporary workaround for navigation bar background, fixes #3271

This commit is contained in:
ismailgulek
2020-06-05 17:49:13 +03:00
parent 8537141ffb
commit bdea1ffc86
@@ -91,9 +91,10 @@ final class EmojiPickerViewController: UIViewController {
super.viewDidAppear(animated)
// Enable to hide search bar on scrolling after first time view appear
if #available(iOS 11.0, *) {
self.navigationItem.hidesSearchBarWhenScrolling = true
}
// Commenting out below code for now. It broke the navigation bar background. For details: https://stackoverflow.com/questions/59716249/ios13-uitableview-uisearchcontroller-with-custom-hidessearchbarwhenscrolling#:~:text=On%20iOS%2013%2C%20if%20you,and%20it%20won%27t%20disappear
// if #available(iOS 11.0, *) {
// self.navigationItem.hidesSearchBarWhenScrolling = true
// }
}
override func viewDidDisappear(_ animated: Bool) {