place a small menu screen above the screen

Asked 2 years ago, Updated 2 years ago, 40 views

I'm a beginner.
I would like to use the storyboard to create a small menu screen that covers the screen.
The screen looks like a hamburger menu, but is it possible to make it with a storyboard just by transitioning the screen?
If possible, please let me know the approximate process.
Thank you for your cooperation.

swift xcode

2022-09-30 19:22

2 Answers

The easiest way is to use the present as popover.
However, low-resolution devices may not meet your expectations because they behave the same way as present modally.(However, it may be better to give up on low-resolution devices because they have poor visibility even if they serve a small menu.)


2022-09-30 19:22

You can use Present Modally to set Presentation to OverCurrentContext and use transparent color for Background.

Unlike Present as Popover, this works regardless of the low resolution terminal


2022-09-30 19:22

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.