Commit 58577c26 by Daniel Jonathan Committed by GitHub

Merge pull request #1222 from OrkhanAlikhanov/patch-3

Removed BottomNavigationController tab bar item title adjustment
parents d6bee85d 1f2148cb
...@@ -127,29 +127,6 @@ open class BottomNavigationController: UITabBarController, Themeable { ...@@ -127,29 +127,6 @@ open class BottomNavigationController: UITabBarController, Themeable {
have a certain need. have a certain need.
*/ */
open func layoutSubviews() { open func layoutSubviews() {
if let v = tabBar.items {
for item in v {
if .phone == Device.userInterfaceIdiom {
if nil == item.title {
let inset: CGFloat = 7
item.imageInsets = UIEdgeInsets.init(top: inset, left: 0, bottom: -inset, right: 0)
} else {
let inset: CGFloat = 6
item.titlePositionAdjustment.vertical = -inset
}
} else {
if nil == item.title {
let inset: CGFloat = 9
item.imageInsets = UIEdgeInsets.init(top: inset, left: 0, bottom: -inset, right: 0)
} else {
let inset: CGFloat = 3
item.imageInsets = UIEdgeInsets.init(top: inset, left: 0, bottom: -inset, right: 0)
item.titlePositionAdjustment.vertical = -inset
}
}
}
}
tabBar.layoutDivider() tabBar.layoutDivider()
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment