iOS Adaptive Presentation Controller

If you want to change the presented view controller’s modelPresentationStyle according to size class, here ‘s a guideline for you. My setup is basic: I have a view controller and it has a button on it. When user taps on the button a new view controller is presented. First you need to set presented view…

iOS Custom UIPresentationController

The purpose of this story is to demonstrate the creation of a custom presentation controller. In my example, there will be a button on first view controller and when user taps on it, the detail view controller will be opened in a custom presentation controller. Here’s the first view controller: We need to create our…