How can I present a view controller from top to down direction in Swift?
I have a view controller with a notification(bell) icon at the top. When I click this icon, I want to show a view controller that originates from top.
Thanks.
How can I present a view controller from top to down direction in Swift?
I have a view controller with a notification(bell) icon at the top. When I click this icon, I want to show a view controller that originates from top.
Thanks.
There is no default transition style that will give you this effect. But you can use custom animations applied on view controller to acheive this effect. These are some links you can follow.
How do you present a UIViewController from the top of the screen instead of the bottom?
There is an control available to presenting a uiviewcontroller
as a popup with different type of animations.
MJPopupViewController try it may be it help you.
There are two ways to do it:
Making a custom transition as suggested above
Add view controller as child view controller and animate it from top.