Home > Mobile >  Unknown white space inside SwiftUI which can't display any element on top of it
Unknown white space inside SwiftUI which can't display any element on top of it

Time:06-11

There is a white space inside my SwiftUI View which is not filled out properly. In that white space area, there is nothing that I can display on top of it. I tried putting a red border around each element one by one, and I found out that the white space belongs to ZStack.

However, I still could not get rid of it. How to deal with this problem?

Below are my code and reference picture:

fixed screenshot

  • Related