FluidGroup / MondrianLayout

🏗 A way to build AutoLayout rapidly than using InterfaceBuilder(XIB, Storyboard) in iOS.
https://medium.com/geekculture/describing-autolayout-with-imaginable-how-it-lays-out-programmatically-mondrianlayout-71efe82f3149
MIT License
168 stars 11 forks source link

Add a way to get specific constraint to animate components. #19

Open muukii opened 3 years ago

muukii commented 3 years ago

UI often runs animations with updating the constant value of the constraint. Mondrian API is a faster way to get the whole layout, but still not have a way to get one of the constraints which would be used in animation.

ozgur-nent commented 3 years ago

hey! thank you for this great library! i would like to know if there is a way to update a constant value for now. is it impossible for now?

muukii commented 3 years ago

@ozgur-nent thanks. For now, we can find a constraint we needed from LayoutBuilderContext. but it's hard.

would you give me your detailed use case?

ozgur-nent commented 3 years ago

@muukii thank you for your answer. i wanna change top space of a view (to hide a view when user scroll the collectionview to bottom)

muukii commented 3 years ago

@ozgur-nent I see, could you paste your example layout code? I'd like to know what layout blocks you're using.