0.8.2
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
Full Changelog: 0.8.1...0.8.2