You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So there's a small problem which I'm facing
I was able to add a pan gesture in the View which is inherited from BaseView in ViewController inherited from BAseViewController . (Followed the same approach which is in the Example code of the library swift).
The below gif shows my requirements.
This thing is done from storyboard I'm trying it using FlexLayout.
So here(in the gif) I added the priorities to UIVIew with Autolayout then made an IBoutlet of NSLayoutConstraint
so when I swipe up using PAN gesture the view Expands and while sliding down the view shrinks (so as the constraints.constant value). So all the sliding up and down is done on that Iboutlet of NSLayoutConstraint.constant value (I mean I modify the value so the view changes its height with :usingSpringWithDamping effect)
But in FlexLayout I Couldn't get the constraints.constant value . I know FlexLayout lays out the view.. but How to achieve the above scenario with FlexLayout.
Looking for immediate help.
Thanks =)
[P.S. Sorry for hiding the details, there are some copyright thingy issues.]
The text was updated successfully, but these errors were encountered:
UIView.animate(withDuration: animated ? duration : 0) {
myView.flex.height(isExpanded ? 100 : 20)
myView.flex.markDirty() // may not be needed in your case
// Relayout the flex container embedding your view. See https://github.com/layoutBox/FlexLayout#layout
myFlexContainer.flex.layout()
}
If you share me your example, I'll be able to check it.
Hey hie thanks for the Awesome Library =D .
So there's a small problem which I'm facing
I was able to add a pan gesture in the View which is inherited from BaseView in ViewController inherited from BAseViewController . (Followed the same approach which is in the Example code of the library swift).
The below gif shows my requirements.
This thing is done from storyboard I'm trying it using FlexLayout.
So here(in the gif) I added the priorities to UIVIew with Autolayout then made an IBoutlet of NSLayoutConstraint
so when I swipe up using PAN gesture the view Expands and while sliding down the view shrinks (so as the constraints.constant value). So all the sliding up and down is done on that Iboutlet of NSLayoutConstraint.constant value (I mean I modify the value so the view changes its height with :usingSpringWithDamping effect)
But in FlexLayout I Couldn't get the constraints.constant value . I know FlexLayout lays out the view.. but How to achieve the above scenario with FlexLayout.
Looking for immediate help.
Thanks =)
[P.S. Sorry for hiding the details, there are some copyright thingy issues.]
The text was updated successfully, but these errors were encountered: