Skip to content
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

Bounce doesn't work #44

Open
heltisace opened this issue Dec 22, 2018 · 5 comments
Open

Bounce doesn't work #44

heltisace opened this issue Dec 22, 2018 · 5 comments

Comments

@heltisace
Copy link

Bounce doesn't work when bottomConstraint = parentView.bottomAnchor.constraint(equalTo: view.bottomAnchor). It does work with less than constraint though then there is an issue I described in the previous topic.

@heltisace
Copy link
Author

Hi @MarioIannotta. I probably found a solution to the situation with constraints in the project. Why not remove the top one and operate only with the bottom? Like setting the height of the controller in the beginning (so that elements that are bound to the bottom won't get under the main controller). In open state then the bottom constraint will be zero and for all the others you just set it to negative values depending on sticky points.
May it work? Can you do this?

@MarioIannotta
Copy link
Owner

Hi @heltisace the problem with this solution is that you won't be able to easily achieve the bouncing effect we discussed here #33 (the second point).

@heltisace
Copy link
Author

heltisace commented Dec 25, 2018

Any ideas how to fix #42 and this then?

Does Pulley have better constraints system? Maybe we could use smth from it.

@MarioIannotta
Copy link
Owner

I just downloaded pulley and as far as I understood it doesn't support dynamic sticky points and customizable bounce size, so maybe the situation is a little bit different. Sorry but at the moment I don't have a lot of time to investigate on those issues 😢

@heltisace
Copy link
Author

Okay, thanks. I will try to spare some time on this issue in the future. For now still using old version but setting the bottom constraint to negative values during animation. Bad practice, but for now it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants