Fullscreen for Swift Playgrounds on iPad

An attempt to create a Swift playground on the iPad, which will be displayed in full screen. I tried to get the borders of the screen using UIScreen.main().bounds , but the display just gets too big for the default playground frame. I know that this is possible, because all the playgrounds are visually presented in full screen mode. I just can't figure out how to do this.

Update 1: Here is a photo. I want a white frame to fill the entire screen.

+5
source share
1 answer

Each ".playgroundpage" folder has a Manifest.plist file (if not, create it). Add LiveViewEdgeToEdge as BOOL to the .plist manifest and set the value to YES

+3
source

All Articles