How to present a view with modal animation programmatically

I have a framework that will be consumed by other developers to develop the app.

I designed a view using SwiftUI in that framework and wanted to present that view with model animation programatically from the framework.

There are many sample that shows how to present a view with modal animation associated with button tap.

Can anyone let me know how to present a view modal programmatically?

How to present a view with modal animation programmatically
 
 
Q