Commit 1050a898 by Daniel Dahan

samples-issue-78: Fixed iPhoneX bottomLayoutGuide constraints not properly being set.

parent 7a6387ec
## 2.12.10
* [samples-issue-78](https://github.com/CosmicMind/Samples/issues/78): Fixed iPhoneX bottomLayoutGuide constraints not properly being set.
## 2.12.9
* Fixed breaking change to loading the TabsController.
......
Pod::Spec.new do |s|
s.name = 'Material'
s.version = '2.12.9'
s.version = '2.12.10'
s.license = 'BSD-3-Clause'
s.summary = 'A UI/UX framework for creating beautiful applications.'
s.homepage = 'http://materialswift.com'
......
......@@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>2.12.9</string>
<string>2.12.10</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
......
......@@ -290,6 +290,18 @@ fileprivate extension TabsController {
/// Layout the tabBar.
func layoutTabBar() {
if #available(iOS 11, *) {
if .bottom == tabBarAlignment {
let v = bottomLayoutGuide.length
if 0 < v {
tabBar.heightPreset = { tabBar.heightPreset }()
tabBar.frame.size.height += v
tabBar.grid.layoutEdgeInsets.bottom = v
}
}
}
tabBar.frame.origin.x = 0
tabBar.frame.origin.y = .top == tabBarAlignment ? 0 : view.bounds.height - tabBar.bounds.height
tabBar.frame.size.width = view.bounds.width
......
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