Skip to content

0.8.2

Choose a tag to compare

@mtktsl mtktsl released this 12 Jan 10:14
· 8 commits to main since this release
0514e7f

Added: Added setNeedsGridLayout method for marking the grid to layout its contents in the next layout pass.
Added: Added sizeThatGridFits method for calculating the non-cached fitting size of the grid for the target size.
Changed: sizeThatFits and systemLayoutSizeFitting methods are now using caching mechanism in order to improve performance.
Changed: layoutSubviews method is now using caching mechanism in order to improve performance. Calling setNeedsLayout for Grid objects will have no effect starting from this update. Call setNeedsGridLayout when it is needed the grid to get marked as "it needs layout" for the next layout pass.
Changed: init() method is now public. This means that Grid objects are now can be initialized as empty.

IMPORTANT NOTE: Do not call sizeThatFits, systemLayoutSizeFitting methods and intrinsicContentSize variable for custom calculations to not interfere with the calculation cache. Call sizeThatGridFits method instead for non-cached calculation and not interfering the caches. This behavior will be discussed and be fixed if possible in the future updates.

What's Changed

  • fix: Optimization is drastically improved for laying out subviews. by @mtktsl in #10

Full Changelog: 0.8.1...0.8.2