Dear Fellow Developers,
How would I (or you) go about creating a view that can be slid up, like Apple has done in the new iOS 12 Stocks app? I've been searching if there's native support for this but haven't found it yet. If you haven't used it, it's a News view that can be pulled up in front of the stocks information and it has its own content. It can naturally be also pushed down again.
I would prefer to use Apple's implementations if they exist instead of 3rd party.
Most of the similar questions were at least 5 years old so I'm wondering what the current options are.
Answer: I followed the instructions of the accepted answer created my own implementation:


Update: For iOS15 and above, Apple has introduced UISheetPresentationController. Have a look!
Well I am not acquainted with the iOS 12 Stocks app. But here's how you can do it.
Create a view that recognizes pan gesture. Track the pan gesture and update the the origin y of the view that slides up accordingly.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With