I want to create a very basic popup using Swift (8.1) with the view type "Form Sheet", it should be a window that floats in the middle of the screen without fairy tales.

I created two view controllers, one button and connected the button from one controller to another using the "Present As Popover" parameter. The second view controller was selected as "Form Sheet", but the result is incorrect:


Why?
source
share