Skip to content

Commit

Permalink
fixed bug of middle button
Browse files Browse the repository at this point in the history
  • Loading branch information
eresar01 committed Mar 16, 2023
1 parent 85b9755 commit 07a6690
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Sources/YSTabBar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion YSTabBar.podspec
Original file line number Diff line number Diff line change
@@ -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'
Expand Down

0 comments on commit 07a6690

Please sign in to comment.