[iOS] Fixed crash after constraints updating.

This commit is contained in:
Daria Volvenkova 2019-10-16 20:39:38 +03:00
parent 75d185f946
commit a69546a52c

View file

@ -261,8 +261,8 @@ using namespace std;
self.myCategoryToolbar.hidden = YES;
self.downloadedCategoryToolbar.hidden = NO;
}
self.showSearchBar.priority = searchAllowed ? UILayoutPriorityRequired : UILayoutPriorityDefaultLow;
self.hideSearchBar.priority = searchAllowed ? UILayoutPriorityDefaultLow : UILayoutPriorityRequired;
self.showSearchBar.priority = searchAllowed ? UILayoutPriorityRequired - 1 : UILayoutPriorityDefaultLow;
self.hideSearchBar.priority = searchAllowed ? UILayoutPriorityDefaultLow : UILayoutPriorityRequired - 1;
[super viewWillAppear:animated];