Revert "#4693 - Drop iOS 11 support."

This reverts commit a2b359f21960e1b9f75139d94adc7aeb35fa479f.
This commit is contained in:
Stefan Ceriu
2021-09-06 17:13:08 +03:00
committed by Stefan Ceriu
parent 88e476fd23
commit 7d6a1cac40
32 changed files with 176 additions and 73 deletions
@@ -267,7 +267,9 @@
- (void)searchBarTextDidBeginEditing:(UISearchBar *)searchBar
{
dispatch_async(dispatch_get_main_queue(), ^{
[self.recentsSearchBar setShowsCancelButton:YES animated:NO];
});
}
@@ -286,7 +288,7 @@
{
if (!self.recentsSearchBar.isHidden)
{
if (!self.recentsSearchBar.text.length && (scrollView.contentOffset.y + scrollView.adjustedContentInset.top > self.recentsSearchBar.frame.size.height))
if (!self.recentsSearchBar.text.length && (scrollView.contentOffset.y + scrollView.mxk_adjustedContentInset.top > self.recentsSearchBar.frame.size.height))
{
// Hide the search bar
[self hideSearchBar:YES];