0

I have a View that has some VStacks and ZStacks (top bar, carousel, detail view with if condition).

This code changes fullscreen/not fullscreen appearance:

.edgesIgnoringSafeArea(viewModel.currentItem != nil ? .all : [])

But even without .all activated I have a strange bottom Home bar appearance like there is a gradient/shadow overlay on it:

enter image description here

What could cause this and how to avoid this?

P.S. I also noticed in my UI hierarchy that HostingViewController is a subview of the UIDropShadowView.

P.P.S. It also doesn't go when navigation to other view with NavigationLink

elp
  • 8,021
  • 7
  • 61
  • 120

1 Answers1

1

That is not an issue, it should be like that, since we have no touch id in new iPhone models, that things play as kind of help in Screen. And when you use edgesIgnoringSafeArea in your code, you get access to under area and back area of that shape for Color works!

That shape is used for Swipe up to go iPhone main screens.

Look at the iPhone 8, it has touch, and look at iPhone 11, No touch ID!


enter image description here

ios coder
  • 1
  • 4
  • 31
  • 91