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: 483
Joined: Fri Aug 23, 2013 12:29 pm
Location: Virginia, USA

iPhone xr recommended fullscreenmode?

Post by DR White » Tue Jun 04, 2019 2:50 pm

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: 5043
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: iPhone xr recommended fullscreenmode?

Post by jacque » Tue Jun 04, 2019 3:59 pm

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: 483
Joined: Fri Aug 23, 2013 12:29 pm
Location: Virginia, USA

Re: iPhone xr recommended fullscreenmode?

Post by DR White » Tue Jun 04, 2019 5:00 pm

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: 6720
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: iPhone xr recommended fullscreenmode?

Post by FourthWorld » Tue Jun 04, 2019 7:51 pm

Looks pretty stretched as well.
Richard Gaskin
Community volunteer LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems: http://FourthWorld.com
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 5043
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: iPhone xr recommended fullscreenmode?

Post by jacque » Tue Jun 04, 2019 8:20 pm

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: 483
Joined: Fri Aug 23, 2013 12:29 pm
Location: Virginia, USA

Re: iPhone xr recommended fullscreenmode?

Post by DR White » Tue Jun 04, 2019 8:27 pm

Yes, I am using fullscreenmode.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 6720
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: iPhone xr recommended fullscreenmode?

Post by FourthWorld » Tue Jun 04, 2019 8:35 pm

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
Community volunteer LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems: http://FourthWorld.com
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

DR White
Posts: 483
Joined: Fri Aug 23, 2013 12:29 pm
Location: Virginia, USA

Re: iPhone xr recommended fullscreenmode?

Post by DR White » Tue Jun 04, 2019 10:08 pm

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: 483
Joined: Fri Aug 23, 2013 12:29 pm
Location: Virginia, USA

Re: iPhone xr recommended fullscreenmode?

Post by DR White » Tue Jun 04, 2019 10:12 pm

in the screenshotI am using fullscreenmode "ExactFit".

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 5043
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: iPhone xr recommended fullscreenmode?

Post by jacque » Tue Jun 04, 2019 11:51 pm

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: 483
Joined: Fri Aug 23, 2013 12:29 pm
Location: Virginia, USA

Re: iPhone xr recommended fullscreenmode?

Post by DR White » Wed Jun 05, 2019 12:31 am

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

Thanks

bwmilby
Posts: 264
Joined: Wed Jun 07, 2017 5:37 am
Location: Henrico, VA
Contact:

Re: iPhone xr recommended fullscreenmode?

Post by bwmilby » Wed Jun 05, 2019 12:38 am

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?
Brian Milby

Script Tracker https://github.com/bwmilby/scriptTracker

DR White
Posts: 483
Joined: Fri Aug 23, 2013 12:29 pm
Location: Virginia, USA

Re: iPhone xr recommended fullscreenmode?

Post by DR White » Wed Jun 05, 2019 12:43 am

Mercy! That's a lot of script.

I am just novice programmer.

Wow, I hope there is an easier way.

Thanks,

David

bwmilby
Posts: 264
Joined: Wed Jun 07, 2017 5:37 am
Location: Henrico, VA
Contact:

Re: iPhone xr recommended fullscreenmode?

Post by bwmilby » Wed Jun 05, 2019 1:14 am

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.
Brian Milby

Script Tracker https://github.com/bwmilby/scriptTracker

DR White
Posts: 483
Joined: Fri Aug 23, 2013 12:29 pm
Location: Virginia, USA

Re: iPhone xr recommended fullscreenmode?

Post by DR White » Wed Jun 05, 2019 9:53 am

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

Return to “Getting Started with LiveCode - Complete Beginners”