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
SSH
Prole
Posts: 1
Joined: Mon May 27, 2019 7:59 pm

iPhone X Bezel

Post by SSH »

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
slime
Solid Snayke
Posts: 3131
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: iPhone X Bezel

Post by slime »

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.
gianmichele
Citizen
Posts: 63
Joined: Tue Jan 14, 2014 11:03 pm

Re: iPhone X Bezel

Post by gianmichele »

Any eta(ish) for the new release?
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 58 guests