We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3dc939f commit 2c51095Copy full SHA for 2c51095
1 file changed
Antidote/TabBarController.swift
@@ -121,6 +121,14 @@ extension TabBarController {
121
customTabBarViewHiddenConstraint = $0.top.equalTo(view.snp.bottom).constraint
122
$0.leading.trailing.equalTo(view)
123
$0.height.equalTo(tabBar.frame.size.height)
124
+ // TODO: this moves the view a bit more to the top, because the home button "line" is in the way otherwise
125
+ // please fix me properly in the future
126
+ if #available(iOS 11.0, *) {
127
+ let keyWindow = UIApplication.shared.keyWindow
128
+ let b = keyWindow?.safeAreaInsets.bottom
129
+ customTabBarViewVisibleConstraint?.update(offset: -(b ?? 20))
130
+ }
131
+
132
}
133
134
customTabBarViewHiddenConstraint.deactivate()
0 commit comments