Commit 0858e5f0 by Daniel Dahan

Fixed Grid issues, where the layout calculations were being deferred and causing…

Fixed Grid issues, where the layout calculations were being deferred and causing inconsistencies in layouts.
parent 31243228
## 3.1.7
* Fixed Grid issues, where the layout calculations were being deferred and causing inconsistencies in layouts.
* Updated to [Motion 3.1.2](https://github.com/CosmicMind/Motion/releases/tag/3.1.2).
## 3.1.6
- [issue-1245](https://github.com/CosmicMind/Material/issues/1245): Fixed issue where completion block was not executed when calling Switch.toggle.
......
Pod::Spec.new do |s|
s.name = 'Material'
s.version = '3.1.6'
s.version = '3.1.7'
s.swift_version = '5.0'
s.license = 'BSD-3-Clause'
s.summary = 'A UI/UX framework for creating beautiful applications.'
......
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1020"
LastUpgradeVersion = "1030"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
......
Subproject commit cb489ea37adff56f805755b285e2e1721adaf9ea
Subproject commit c1d4c465202f5a15504c4da5cc96952b114a89dc
......@@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>3.1.6</string>
<string>3.1.7</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
......
......@@ -216,6 +216,13 @@ public struct Grid {
return
}
/// It is important to call `setNeedsLayout` and `layoutIfNeeded`
/// in order to have the parent view's `frame` calculation be set
/// for `Grid` to be able to then calculate the correct dimenions
/// of its `child` views.
canvas.setNeedsLayout()
canvas.layoutIfNeeded()
guard 0 < canvas.bounds.width && 0 < canvas.bounds.height else {
return
}
......
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