如何将 ARSCNView 适配到 iPhone X 上的 SafeArea?

How to fit ARSCNView to SafeArea on iPhone X?

我怎样才能使 ARSCNView 对象适合 iPhone X 的 SafeArea 和故事板?

Select ARSCNView 的顶部约束 (Scene View.top = top),然后在 Size Inspector 中更改一个名为 Second Item 的 属性 来自 SuperviewSafe Area.

现在在文档大纲区域显示:Scene View.top = Safe Area.top

Constant = 0这个属性是一个偏移量。

然后选择Xcode底部的View as: iPhone Xs:

希望对您有所帮助。