As I said before using @MarkHunte 's xCode template works great. But there is still a problem with showing the app full screen on iPhone X and up.
I managed to fool xCode a bit by putting some information outside the scope of the chosen breakpoint of 667.
It looks like this on iPhone 8 etc.
Are you meaning for your app to use the safe areas.
A quick look around…
I know playing with the safe areas allows views to slip under the notch, but I have only done it with the new SwiftUI. I can look later when I get back.
But can you explain more on if your app is launching as full screen or user inter action to go to full screen.
What area are you classing as fullscreen.
Also note this is not an issue with the Xcode Templates but with iOS/iPhone.
If a solution can be found it is likely you can add the code to your Template file.
It would be nice indeed to find a way to use the safe areas.
I want to get rid of the dark areas. If they can have the same background color as the app has, it would already look much better.
Well, I’m not a fan of the notch. This is one of the reasons I changed the 10-year plan. Designing for the notch was slowing me down. There is another solution. It’s more difficult…
Basically, and theoretically, you can use Swift to detect the device that is in use. If it’s an iPhone with a notch, you can load the scene that has been specifically designed for that device.
Although, I have been batting with this issue while building “Apparatuses”. I went with the CSS fix.
Basically, I have a background image. I use CSS to keep the content off the notch, but the background pattern can fill the notch to make it look nicer.
Started a new project with the old files.
Used viewport-fit = cover and I managed to get an even background. But: only when Portrait mode is activated (in xcode) and after turning the phone to portrait mode and back again to landscape. This is half of what I want because the app is landscape only.