I want to make very basic popup window by using Swift (8.1) with presentation type "Form Sheet", it should be a window that float at the middle of the screen without tales.
I created two View Controllers, one button and connect the button from one controller to another with parameter "Present As Popover". Second view controller was selected as "Form Sheet", but the result is wrong:
Why?
Don't present it as a Popover. You want the segue to be Modal and present it as a form sheet. In the storyboard, click on the segue and change the "Segue" to "Modal"
In my haste, I used an Objective-C project for setting up an example instead of Swift. Below is what the Storyboard Segue should be in Swift using the "Present Modally" Adaptive Segue.
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