Commit 4d708542 by Daniel Dahan

Fixed issue where TabBar items were not correctly laying out.

parent 9ab21516
## 2.13.7
* [issue-1044](https://github.com/CosmicMind/Material/issues/1044#issuecomment-371061101): Fixed issue where TabBar items were not correctly laying out.
## 2.13.6
* [issue-841](https://github.com/CosmicMind/Material/issues/841): Adjusted default sizing for Switch to be more like the original sizing.
......
Pod::Spec.new do |s|
s.name = 'Material'
s.version = '2.13.6'
s.version = '2.13.7'
s.license = 'BSD-3-Clause'
s.summary = 'A UI/UX framework for creating beautiful applications.'
s.homepage = 'http://cosmicmind.com'
......
......@@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>2.13.6</string>
<string>2.13.7</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
......
......@@ -358,6 +358,7 @@ fileprivate extension TabBar {
let p = q + tabItemsInterimSpace
for v in tabItems {
v.sizeToFit()
let x = v.sizeThatFits(CGSize(width: .greatestFiniteMagnitude, height: scrollView.bounds.height)).width
v.frame.size.height = scrollView.bounds.height
v.frame.size.width = x + q
......
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