Commit c4e19568 by Daniel Dahan

Fixed layout issue, where the calculation of the layout item was not being set…

Fixed layout issue, where the calculation of the layout item was not being set in the current render cycle.
parent a64fc985
## 2.12.14
* [samples issue-95](https://github.com/CosmicMind/Samples/issues/95): Fixed TabBar image colors that were not correctly being set for a given state.
* Fixed layout issue, where the calculation of the layout item was not being set in the current render cycle.
## 2.12.13
* Fixed issue where sizing of pulse was incorrectly animating when using the NavigationController on iOS 11.
......
Pod::Spec.new do |s|
s.name = 'Material'
s.version = '2.12.13'
s.version = '2.12.14'
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.13</string>
<string>2.12.14</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
......
......@@ -635,6 +635,11 @@ fileprivate extension Layout {
- Parameter for view: A UIView.
*/
class func updateConstraints(for view: UIView) {
view.updateConstraintsIfNeeded()
view.updateConstraints()
view.setNeedsLayout()
view.layoutIfNeeded()
Motion.async {
view.updateConstraintsIfNeeded()
view.updateConstraints()
......
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