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

Any plans to have the card view hide squeeze and dim the background like this screenshot? #15

Open
kylebrowning opened this issue May 20, 2019 · 5 comments

Comments

@kylebrowning
Copy link

IMG_0841

@muukii
Copy link
Collaborator

muukii commented May 21, 2019

@kylebrowning
Thank you.
And I think we have some idea.
A few days ago, Rideau has been released 1.0.0-rc.4.
With this, we can add animation alongside dragging or moving.
You can find details on https://github.com/muukii/Rideau/blob/master/RideauDemo/ViewController.swift#L76

So, My idea currently I have, Create container view controller, plus put main view controller and Rideau on the surface.

  • container view controller
    • Target view controller (it will squeeze and dim by animation alongside Rideau)
    • RideauView
      • view or viewcontroller

I will try to create that like this.
If you are going to do this or another way, I would like to add it on Demo Application.
It will be helpful for other customers.

@kylebrowning
Copy link
Author

Cool! The way I’ve seen others do it just FYI is to basically core graphics screenshot the target view and animate/squeeze that instead of having to make the RideauView be a child view of the container.

Either way works though. I’m not currently working on this.

@muukii
Copy link
Collaborator

muukii commented May 21, 2019

Is the use-case what you want for modal-presentation?
If so, It's also good to use ViewController Transition, I think.

@kylebrowning
Copy link
Author

For me it’s exactly like Apple Music.

@muukii
Copy link
Collaborator

muukii commented May 21, 2019

Ok.
So, that function should be available on same view controller. It does not use modal presentation.

Sent with GitHawk

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