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

Сan't hide/show controller outside. #65

Closed
Maxatma opened this issue Aug 22, 2019 · 4 comments
Closed

Сan't hide/show controller outside. #65

Maxatma opened this issue Aug 22, 2019 · 4 comments

Comments

@Maxatma
Copy link

Maxatma commented Aug 22, 2019

As I understood documentation and code, you can only change pullupVC inside itself. However, there is a needs to hide/show it outside.
I think there should be delegate for that, like in default UIKit elements.

@MarioIannotta
Copy link
Owner

What do you mean with "you can only change pullupVC inside itself"? You can just reference is and call addPullUpController and removePullUpController wherever you want.

@Maxatma
Copy link
Author

Maxatma commented Aug 23, 2019

Hello. What if I don't want to remove it? I want to hide it down to initial point?
I want to use this, right? :
pullpupController.pullUpControllerMoveToVisiblePoint(minimumPoint, animated: true, completion: nil)

@MarioIannotta
Copy link
Owner

Yes, exactly.
And to show it again you can use the same method but with a different (>0) offset.

@Maxatma
Copy link
Author

Maxatma commented Aug 24, 2019

Okay, thanks.

@Maxatma Maxatma closed this as completed Aug 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants