In UITest, I have tried to check the device screen size, but this code doesn't get correct size.
let boundsHeight = UIScreen.main.bounds.size.height
When I try with above code on Xcode simulator, boundsHeight is 480 each time, regardless of the device even though it should be 568 with iPhone SE.
What causes UITest not to get the size correctly?