Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fullscreen for Swift Playgrounds on iPad

Tags:

swift

ipad

swift3

Trying to create a Swift playground on the iPad that will display in full screen. I have tried obtaining the bounds of the screen using UIScreen.main().bounds, but the display just becomes too large for the default playgrounds frame. I know that this is possible because all of the example playgrounds are fullscreen. I just can't figure out how it is being done.

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

photo

like image 409
bmorton1 Avatar asked Jul 20 '16 20:07

bmorton1


1 Answers

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

like image 81
Michael Avatar answered Oct 09 '22 04:10

Michael