|
@@ -344,6 +344,10 @@
|
344
|
344
|
if ([performAction isEqualToString:@"setTabBarHidden"])
|
345
|
345
|
{
|
346
|
346
|
BOOL hidden = [actionParams[@"hidden"] boolValue];
|
|
347
|
+
|
|
348
|
+ CGRect nextFrame = self.tabBar.frame;
|
|
349
|
+ nextFrame.origin.y = UIScreen.mainScreen.bounds.size.height - (hidden ? 0 : self.tabBar.frame.size.height);
|
|
350
|
+
|
347
|
351
|
[UIView animateWithDuration: ([actionParams[@"animated"] boolValue] ? 0.45 : 0)
|
348
|
352
|
delay: 0
|
349
|
353
|
usingSpringWithDamping: 0.75
|
|
@@ -351,7 +355,7 @@
|
351
|
355
|
options: (hidden ? UIViewAnimationOptionCurveEaseIn : UIViewAnimationOptionCurveEaseOut)
|
352
|
356
|
animations:^()
|
353
|
357
|
{
|
354
|
|
- self.tabBar.transform = hidden ? CGAffineTransformMakeTranslation(0, self.tabBar.frame.size.height) : CGAffineTransformIdentity;
|
|
358
|
+ [self.tabBar setFrame:nextFrame];
|
355
|
359
|
}
|
356
|
360
|
completion:^(BOOL finished)
|
357
|
361
|
{
|