ios – SKOverlay issue on screen rotation

0
50


I am using SKOverlay in my app but I faced an issue when I rotate my phone and change the current orientation.

So when I start in portrait mode the overlay frame is:

x:15.000000, 
y: 844.000000, 
width: 360.000000, 
height: 82.000000

then I rotate the phone and let the screen to be dismissed in landscape mode. In landscape mode the frame is:

x: 122.000000, 
y: 390.000000, 
width: 600.000000, 
height: 82.000000

And when I present the screen again in portrait mode after that the frame is somehow saved and:

x: 122.000000, 
y: 390.000000, 
width: 600.000000, 
height: 82.000000

instead of

x:15.000000, 
y: 844.000000, 
width: 360.000000, 
height: 82.000000

even setting overlay = nil and re-initializing it does not help here.
Is there any hack what can I do here?