7

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

byaruhaf
  • 4,128
  • 2
  • 32
  • 50
bmorton1
  • 73
  • 6
  • Specifically, I'm talking about when a user hides the editor portion of playgrounds and the app display is the only thing left. The playground is still shown in a window that isn't full size. I want this frame to be the size of the iPad screen. – bmorton1 Jul 21 '16 at 14:57
  • Can you post a picture? I think there might be an option you put in `Manifest.plist`. – tktsubota Jul 21 '16 at 20:17

1 Answers1

7

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

Michael
  • 1,115
  • 9
  • 24
  • 4
    This removes the border between the live view and the code editor, but it does not hide the code editor. If anyone, like me, cannot figure out how to hide the code editor: There is an invisible tab you can grab that is located in the center of the border between the live view and the editor. If you slide it, you can make the live view full screen. A number of overlay controls will remain even in full screen. – rgov Dec 13 '17 at 09:21