mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-29 15:52:40 +00:00
SegmentedVC improvement: Improve animation when quitting searh in HomeVC
This commit is contained in:
parent
39e57199c5
commit
7fdd6ed6e6
1 changed files with 7 additions and 0 deletions
|
@ -436,6 +436,13 @@
|
|||
// Hide the tabs header
|
||||
if (animated)
|
||||
{
|
||||
// If the currently selected tab is the recents, force to show it right now
|
||||
// The transition looks smoother
|
||||
if (self.selectedViewController.view.hidden == YES && self.selectedViewController == recentsViewController)
|
||||
{
|
||||
self.selectedViewController.view.hidden = NO;
|
||||
}
|
||||
|
||||
[UIView animateWithDuration:.3 delay:0 options:UIViewAnimationOptionBeginFromCurrentState | UIViewAnimationOptionCurveEaseIn
|
||||
animations:^{
|
||||
|
||||
|
|
Loading…
Reference in a new issue