IOS sliding drawer equivalent

After you spent a lot of time searching, I finally post this question, hoping to get an answer.

I want to have a widget in iOS that has similar Sliding Drawer functionality in Android. (Like the panel below, and pulling it, a new view appears).

Any help would be greatly appreciated.

thanks

+6
source share
2 answers

A few similar questions that may help you:

Creating a Drawer - (iOS)

iOS: UIView Slide On / Off

+3
source

I recently made a container container controller and exposed it on Github: https://github.com/saldavonschwartz/DrawerContainerController

While not quite the same (you are asking about vertical single view moving up / down), you can download the code and have a look. My approach may also work on what you are trying to do: basically, creating a container controller that can host another controller and its presentation and present its presentation in its own way.

In particular, you can see:

  • -replaceContainedController:forIdentifier: for how you plan to add child view controllers to Apple.
  • -didPanContent: and -translateContentContainerViewToPosition:animated:completion: for rolling animation from the UIPanGestureRecognizer input
0
source

Source: https://habr.com/ru/post/921821/


All Articles