title: iOS 13 UITabBar RePosition to Top
body: <p>I have followed <a href="https://stackoverflow.com/a/29580094/940096">this answer</a> to reposition my tabbar to top of the page. It was working perfect until iOS 13 release. In iOS 13 the tabbar is visible on bottom of the screen. Any other workaround should i have to use?</p>
  
  <p>Does anyone faced the same problem?</p>
  
  <p><strong>Update:</strong></p>
  
  <p>Below piece of code i have used in my app:</p>
  
  <pre><code>- (void) viewWillLayoutSubviews {
      [super viewWillLayoutSubviews];
      [self.tabBar invalidateIntrinsicContentSize];
  
      // Just a quick fix for making this to happen for iOS versions between 11.0 to 11.1
      // Updating the frame in Main queue.
      dispatch_async(dispatch_get_main_queue(), ^{
          [self changeTabBarPosition];
      });
  
      // Set the translucent property to NO then back to YES to
      // force the UITabBar to reblur, otherwise part of the
      // new frame will be completely transparent if we rotate
      // from a landscape orientation to a portrait orientation.
  
      self.tabBar.translucent = NO;
      self.tabBar.translucent = YES;
  }
  
  - (void)changeTabBarPosition {
      CGFloat tabSize = 44.0;
      UIInterfaceOrientation orientation = [UIApplication sharedApplication].statusBarOrientation;
      if (UIInterfaceOrientationIsLandscape(orientation)) {
          tabSize = 32.0;
      }
      CGRect tabFrame = self.tabBar.frame;
      tabFrame.size.height = tabSize;
      tabFrame.origin.y = [UIApplication sharedApplication].statusBarFrame.size.height;
      self.tabBar.frame = tabFrame;
  }
  </code></pre>