From 07a6690dc7741ae8347b25cd960aae8ab15143f3 Mon Sep 17 00:00:00 2001 From: Yerem Sargsyan Date: Thu, 16 Mar 2023 15:50:38 +0400 Subject: [PATCH] fixed bug of middle button --- Sources/YSTabBar.swift | 3 +++ YSTabBar.podspec | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Sources/YSTabBar.swift b/Sources/YSTabBar.swift index 0d9ed8c..f9b80ba 100644 --- a/Sources/YSTabBar.swift +++ b/Sources/YSTabBar.swift @@ -150,11 +150,14 @@ open class YSTabBar: UITabBarController { public func hideTabBar() { buttomView.isHidden = true tabBarView.isHidden = true + view.removeFromSuperview() + centerButton?.removeFromSuperview() } public func showTabBar() { buttomView.isHidden = false tabBarView.isHidden = false + setupCentorButton() } fileprivate func setupTabBar() { diff --git a/YSTabBar.podspec b/YSTabBar.podspec index 0f24c9d..a9f6a34 100644 --- a/YSTabBar.podspec +++ b/YSTabBar.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'YSTabBar' - s.version = '1.0.2' + s.version = '1.0.3' s.license = 'MIT' s.summary = 'YSTabBar is fully customizable tab bar controller which has unique center item.' s.homepage = 'https://github.com/eresar01/YSTabBar'