PinLayout icon indicating copy to clipboard operation
PinLayout copied to clipboard

Add `isIncludedInPinLayoutSizeCalculation` property to `Layoutable`

Open stleamist opened this issue 2 years ago • 3 comments

This PR adds isIncludedInPinLayoutSizeCalculation property to Layoutable.

This can be useful when calculating the size of a view that contains subviews that may disappear based on conditions after the initial load. (similary to UIStackView's arrangedSubviews, or FlexLayout's isIncludedInLayout)

stleamist avatar Mar 23 '23 14:03 stleamist

Hi @lucdion,

I've made a proposal to exclude subviews from the size calculation without removing them. I'd appreciate it if you could review it! :)

stleamist avatar May 16 '23 12:05 stleamist

Just missing changes related to the documentation 🙏

lucdion avatar May 17 '23 00:05 lucdion

I'll let you know when the documentation is complete!

stleamist avatar May 17 '23 09:05 stleamist