From 93ebd5d741e8a68856d9e2f62fd0b7bc628c10a1 Mon Sep 17 00:00:00 2001 From: AnatoliyPozdeyev Date: Tue, 30 Jul 2019 17:13:51 +0300 Subject: [PATCH 1/2] Fix of crash at setting tabbar view controllers in code. --- Classes/BFPaperTabBarController.m | 6 ++++++ 1 file changed, 6 insertions(+) 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 From 201e4c5e7b7993406d180a46d3f41c19c3f55cac Mon Sep 17 00:00:00 2001 From: AnatoliyPozdeyev Date: Tue, 30 Jul 2019 17:15:15 +0300 Subject: [PATCH 2/2] Pod version 2.2.10. --- BFPaperTabBarController.podspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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