Rideau icon indicating copy to clipboard operation
Rideau copied to clipboard

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

Open kylebrowning opened this issue 5 years ago • 5 comments

IMG_0841

kylebrowning avatar May 20 '19 22:05 kylebrowning

@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.

muukii avatar May 21 '19 02:05 muukii

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.

kylebrowning avatar May 21 '19 02:05 kylebrowning

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

muukii avatar May 21 '19 02:05 muukii

For me it’s exactly like Apple Music.

kylebrowning avatar May 21 '19 03:05 kylebrowning

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

Sent with GitHawk

muukii avatar May 21 '19 10:05 muukii