Fullscreen for Swift Playgrounds on iPad

别来无恙 提交于 2020-02-28 04:03:41

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/38490394/fullscreen-for-swift-playgrounds-on-ipad

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!