iPhone xr recommended fullscreenmode?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller

DR White
Posts: 718
Joined: Fri Aug 23, 2013 12:29 pm

iPhone xr recommended fullscreenmode?

Post by DR White »

What is the iPhone xr recommended fullscreenmode?

The notch in the iPhone XR is rending my apps useless.
What can I do to address this issue?

Thanks,

David
jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7423
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: iPhone xr recommended fullscreenmode?

Post by jacque »

Could you post a screenshot so we can see what's happening?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
DR White
Posts: 718
Joined: Fri Aug 23, 2013 12:29 pm

Re: iPhone xr recommended fullscreenmode?

Post by DR White »

The notch at the top is covering some of my navigation buttons.
see attachment.

Thanks,

David
Attachments
IMG_4985.JPG
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10105
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: iPhone xr recommended fullscreenmode?

Post by FourthWorld »

Looks pretty stretched as well.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7423
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: iPhone xr recommended fullscreenmode?

Post by jacque »

That helps. Are you using a fullscreenmode? If so, which one? I think I'd try "showAll" and if that doesn't work try "noBorder". The last will scale to the width and usually cuts off some of the top, but that's what you want. Or if you don't want to use a fullscreenmode, does the effective working rect of the stack give you better dimensions?

I'm interested in how you solve this because I'm going to need to do it too soon.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
DR White
Posts: 718
Joined: Fri Aug 23, 2013 12:29 pm

Re: iPhone xr recommended fullscreenmode?

Post by DR White »

Yes, I am using fullscreenmode.
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10105
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: iPhone xr recommended fullscreenmode?

Post by FourthWorld »

I wonder if it would be better if fullScreenMode were revised to be limited to the region below the notch, per Apple's guidelines:

https://developer.apple.com/design/huma ... nd-layout/
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
DR White
Posts: 718
Joined: Fri Aug 23, 2013 12:29 pm

Re: iPhone xr recommended fullscreenmode?

Post by DR White »

FourthWorld,

I have tried all the variations of fullScreenMode and none of them provide a professional appearance on the new iPhones.

It would be very much appreciated, if LC could revise the fullScreenMode to accommodate the new iPhones. I really thought LC would have done it by now.

Thanks,

David
DR White
Posts: 718
Joined: Fri Aug 23, 2013 12:29 pm

Re: iPhone xr recommended fullscreenmode?

Post by DR White »

in the screenshotI am using fullscreenmode "ExactFit".
jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7423
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: iPhone xr recommended fullscreenmode?

Post by jacque »

Try noBorder or showAll, they don't stretch the layout and may work.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
DR White
Posts: 718
Joined: Fri Aug 23, 2013 12:29 pm

Re: iPhone xr recommended fullscreenmode?

Post by DR White »

I tried them both, but they did not work well.

Thanks
bwmilby
Posts: 467
Joined: Wed Jun 07, 2017 5:37 am
Contact:

Re: iPhone xr recommended fullscreenmode?

Post by bwmilby »

See:
https://github.com/bwmilby/mobileDemo

Specifically the SetBackground handler here:
https://github.com/bwmilby/mobileDemo/b ... codescript

Using showAll you can set a background object a precise size to cover the whole screen.

Unfortunately due to the aspect ratio of the X models, fullScreenModes are going to be less than optimal.

Also, what is the size of the stack as developed?
DR White
Posts: 718
Joined: Fri Aug 23, 2013 12:29 pm

Re: iPhone xr recommended fullscreenmode?

Post by DR White »

Mercy! That's a lot of script.

I am just novice programmer.

Wow, I hope there is an easier way.

Thanks,

David
bwmilby
Posts: 467
Joined: Wed Jun 07, 2017 5:37 am
Contact:

Re: iPhone xr recommended fullscreenmode?

Post by bwmilby »

I think that a background pattern will fill the screen as well. You do not need to exactly fill the screen just as long as the background image is as large or larger than the virtual coordinates of the scaled screen size. My code was demonstrating that I could draw a box outline that traced the outline of the screen. I really need to get some screen shots up on the repo.

The issue that you are running up against is that showAll wastes about 18% of the screen assuming that you used a 16:9 ratio (.56 portrait - iPhone 5/6/6+) for development.

If you do not need to support landscape, you may be able to use the geometry manager. The only thing I’m not sure about is how you would handle the notch since you would need to make a change depending on the device.
DR White
Posts: 718
Joined: Fri Aug 23, 2013 12:29 pm

Re: iPhone xr recommended fullscreenmode?

Post by DR White »

Yes, LC needs to have a function to get iPhone model.

It also, would be great if LC could have a custom fullscreenmode that had border parameters.

But, I understand that LC cannot cater to every unique situation.
Post Reply