@@ -4,7 +4,7 @@ import RxCocoa
44import RxGesture
55
66public final class ScrollableBottomNavigationView : UIView {
7- static let tabBarWidth : CGFloat = UIScreen . main. bounds. width - 56
7+ static let tabBarWidth : CGFloat = UIScreen . main. bounds. width
88 static let height : CGFloat = 50
99
1010 // MARK: - Basic Components
@@ -22,7 +22,7 @@ public final class ScrollableBottomNavigationView: UIView {
2222
2323 self . _fixedMenuItemView. snp. remakeConstraints { ( maker) in
2424 maker. width. equalTo ( menuItemWidth)
25- maker. leading. equalToSuperview ( ) . offset ( 28 )
25+ maker. leading. equalToSuperview ( )
2626 maker. centerY. equalToSuperview ( )
2727 }
2828
@@ -107,7 +107,7 @@ public final class ScrollableBottomNavigationView: UIView {
107107 let menuItemsCount : Int = {
108108 self . _menuItemsStackView. arrangedSubviews. count < 6 ? self . _menuItemsStackView. arrangedSubviews. count : 5
109109 } ( )
110- let tabBarWidth : CGFloat = deviceWidth - 56
110+ let tabBarWidth : CGFloat = deviceWidth
111111 let menuItemWidth : CGFloat = tabBarWidth / CGFloat( menuItemsCount + 1 )
112112
113113 self . _fixedMenuItemView. snp. remakeConstraints { ( maker) in
@@ -155,7 +155,7 @@ public final class ScrollableBottomNavigationView: UIView {
155155 maker. height. equalTo ( Self . height)
156156 maker. leading. equalTo ( _fixedMenuItemView. snp. trailing)
157157 maker. top. bottom. equalToSuperview ( )
158- maker. trailing. equalToSuperview ( ) . offset ( - 28 )
158+ maker. trailing. equalToSuperview ( )
159159 }
160160 }
161161
0 commit comments