iPad上的Swift Playgrounds的全屏显示 [英] Fullscreen for Swift Playgrounds on iPad

查看:104
本文介绍了iPad上的Swift Playgrounds的全屏显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试在iPad上创建一个Swift游乐场,该游乐场将全屏显示.我尝试使用UIScreen.main().bounds获取屏幕的边界,但是对于默认的运动场框架,显示变得太大了.我知道这是可能的,因为所有示例游乐场都是全屏的.我只是不知道它是如何完成的.

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.

更新1: 这是一张照片.我希望白框占据整个屏幕.

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

推荐答案

每个".playgroundpage"文件夹都有一个Manifest.plist文件(如果没有,则创建一个).添加

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

这篇关于iPad上的Swift Playgrounds的全屏显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆