I'm working on a app that renders a 3D scene that simulates a real space into an iPhone making its screen become a hollow box, as seen in the sketch below:
(note the camera position order down below)
The problem is on how to calculate the camera parameters to make the box look real fixed to the screen edges.
Is this feasible through SceneKit?

In this configuration the camera's
zNearplane corresponds to the screen of the iPhone. From that you can can derive azposition from the camera's field of view and the screen's width (see here).