-
Notifications
You must be signed in to change notification settings - Fork 147
Add isIncludedInPinLayoutSizeCalculation property to Layoutable
#268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add isIncludedInPinLayoutSizeCalculation property to Layoutable
#268
Conversation
152b8b6 to
cbb1684
Compare
isIncludedInPinLayout property to Layoutable (削除ここまで)isIncludedInPinLayoutSizeCalculation property to Layoutable (追記ここまで)
stleamist
commented
May 16, 2023
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! :)
cbb1684 to
38bbd92
Compare
@lucdion
lucdion
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice addition. Few comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should add an URL link that point to the documentation of the new property for the string are included in the layout
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
7a35f5b to
7afd896
Compare
lucdion
commented
May 17, 2023
Just missing changes related to the documentation 🙏
stleamist
commented
May 17, 2023
I'll let you know when the documentation is complete!
Uh oh!
There was an error while loading. Please reload this page.
This PR adds
isIncludedInPinLayoutSizeCalculationproperty toLayoutable.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'sarrangedSubviews, orFlexLayout'sisIncludedInLayout)