Search Unity

iOS Screen.safeArea incorrect in landscape - leaves space on the side for the swipe zone

Discussion in 'iOS and tvOS' started by DreamPower, Oct 25, 2020.

  1. DreamPower

    DreamPower

    Joined:
    Apr 2, 2017
    Posts:
    103
    In landscape, the safe area on iOS devices should allow space for the notch on one side and the swipe zone on the bottom. But Screen.safeArea is doing that AND extra space where the swipe zone would have been in portrait zone. So there is wasted space, and if the notch is on the right then it won't look good to have a big empty space on the left.

    Is there a solution? A way to request a more accurate safe zone? The only solution I can think of is manually doing it, which isn't feasible for every mobile device that may have a notch.
     
  2. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,795