diff --git a/BFPaperTabBarController.podspec b/BFPaperTabBarController.podspec index 9bfc4bc..8dc3040 100644 --- a/BFPaperTabBarController.podspec +++ b/BFPaperTabBarController.podspec @@ -1,11 +1,11 @@ Pod::Spec.new do |s| s.name = "BFPaperTabBarController" - s.version = "2.2.9" + s.version = "2.2.10" s.summary = "iOS UITabBar inspired by Google's Paper Material Design." s.homepage = "https://github.com/bfeher/BFPaperTabBar" s.license = { :type => 'MIT', :file => 'LICENSE.md' } s.author = { "Bence Feher" => "ben.feher@gmail.com" } - s.source = { :git => "https://github.com/bfeher/BFPaperTabBarController.git", :tag => "2.2.9" } + s.source = { :git => "https://github.com/bfeher/BFPaperTabBarController.git", :tag => s.version.to_s } s.platform = :ios, '7.0' s.source_files = 'Classes/*.{h,m}' s.requires_arc = true diff --git a/Classes/BFPaperTabBarController.m b/Classes/BFPaperTabBarController.m index cbc2bce..0d7ad35 100644 --- a/Classes/BFPaperTabBarController.m +++ b/Classes/BFPaperTabBarController.m @@ -167,6 +167,12 @@ - (void)viewDidLayoutSubviews } } +- (void)setViewControllers:(NSArray<__kindof UIViewController *> * __nullable)viewControllers animated:(BOOL)animated { + [super setViewControllers:viewControllers animated:animated]; + + self.tabRects = nil; +} + #pragma mark - Setup - (void)setupBFPaperTabBarController