src/video/uikit/SDL_uikitwindow.m
changeset 12919 d3a97780aa05
parent 12852 afe3c46cc37e
     1.1 --- a/src/video/uikit/SDL_uikitwindow.m	Mon Jul 01 09:05:15 2019 -0700
     1.2 +++ b/src/video/uikit/SDL_uikitwindow.m	Mon Jul 01 14:52:56 2019 -0300
     1.3 @@ -69,8 +69,15 @@
     1.4  
     1.5  - (void)layoutSubviews
     1.6  {
     1.7 -    /* Workaround to fix window orientation issues in iOS 8+. */
     1.8 -    self.frame = self.screen.bounds;
     1.9 +    /* Workaround to fix window orientation issues in iOS 8. */
    1.10 +    /* As of July 1 2019, I haven't been able to reproduce any orientation
    1.11 +     * issues with this disabled on iOS 12. The issue this is meant to fix might
    1.12 +     * only happen on iOS 8, or it might have been fixed another way with other
    1.13 +     * code... This code prevents split view (iOS 9+) from working on iPads, so
    1.14 +     * we want to avoid using it if possible. */
    1.15 +    if (!UIKit_IsSystemVersionAtLeast(9.0)) {
    1.16 +        self.frame = self.screen.bounds;
    1.17 +    }
    1.18      [super layoutSubviews];
    1.19  }
    1.20