How to calculate the size of a non full screen page sheet view on iPad

385 Views Asked by At

Im trying to calculate the width of this view not the entire screen but i'm getting the whole screen width not the page sheet view on iPad.

On iPhone it is fine because the page sheet covers the whole width. But on iPads its different

let width : CGFloat = self.view.bounds.width

enter image description here

0

There are 0 best solutions below