FlexLayout
FlexLayout copied to clipboard
Why not use Bool value as parameter in display(..)
Just asking. If taking Bool
as parameter we can use this function as we use isHidden
property in UIView
. It will be more convenient I think.
Sorry @wjling, I'm not sure to understand your comment 🤔
Sorry I don't express myself clearly. I just think about that if the API is designed as display(true)
and display(false)
, it may be clearer and more convenient than display(.none)
and display(.flex)
. Never mind, I'm just a little curious :D
display: flex
is Flexbox CSS syntax. flex
and none
come from Yoga. I guess the API is just trying to be true to that.
Very old topic. Closing it.