How to know the original x and y coordinates of view in swift playgrounds

Hello, I was trying to find the x coordinates of the live view in swift playgrounds in iPad. I tried


view.frame.maxX


And then I tried


view.bounds.maxX


and then I tried


view.frame.width


but all of these gave the values of the full-screen live view even though I was in the side-by-side mode. Is there a way I can find the values for the mode in which the user is. If not, is there a way I can know in which mode the user is?