It looks like the Resized event is reporting the previous window size when the screen orientation is changed.
Debug output here shows the value from the Resized event, graphic is just a 320x200 sprite, and I'm not transforming either the sprite or the view at any point:
I've tested this on iOS 11 and 9, and I'm using Xcode 9 on macOS 10.13. Has anybody else got this working successfully?
Example code (Not the one used in above video, but has same outcome for me)
sf::RenderWindow window(sf::VideoMode(),"SFML Doesn't work :(");
sf::RectangleShape shape;
shape.setFillColor(sf::Color::Red);
while(window.isOpen())
{
sf::Event ev;
while(window.pollEvent(ev))
{
if (ev.type == sf::Event::Resized)
{
std::cout << std::to_string(ev.size.width) + "," + std::to_string(ev.size.height) << std::endl;
shape.setSize(sf::Vector2f(ev.size.width,ev.size.height));
}
}
window.clear();
window.draw(shape);
window.display();
}