IOS 7 removable view

I am studying a subview implementation in a view controller that will sit as the bottom of the screen until the user holds it and pulls it up to the top of the window to cover the entire screen.

What Google Maps does in Android / iOS by clicking on a pin and pulling the bottom bar to see the details is exactly what I want to implement.

http://i.imgur.com/SmqWPFi.jpg

This is what I am talking about. I am not sure what the best way to implement this. I can either have an animation that is hardcoded when I click on the panel, forcing the view to expand and close 3/4 of the screen, and fix there, and 1/4 of the screen will be a map, and as soon as the map clicks, the back view will fall. Or ask the user to drag and lift the view and pull it back to the anchor.

+4

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


All Articles