iPhone X Bezel

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
Posts: 1
Joined: Mon May 27, 2019 7:59 pm

iPhone X Bezel

Post by SSH » Mon May 27, 2019 8:04 pm

Hi, I'm working on a Love2D game for iPhone, and I'm curious, how can I make the game respect iPhone X bezels? By that I mean, run only in the safe area of iPhone X screen (do not use the top and bottom parts with the bezel and the rounded corners)?

Thanks, I will really appreciate any hints in that direction!

User avatar
Solid Snayke
Posts: 2898
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada

Re: iPhone X Bezel

Post by slime » Mon May 27, 2019 10:22 pm

There isn't a way to detect the safe area in released versions of LÖVE, but 11.3 (in development) adds a function for it: love.window.getSafeArea.

Posts: 51
Joined: Tue Jan 14, 2014 11:03 pm

Re: iPhone X Bezel

Post by gianmichele » Tue May 28, 2019 9:11 am

Any eta(ish) for the new release?

Post Reply

Who is online

Users browsing this forum: No registered users and 34 guests