Search code examples
swiftuitvos

SwiftUI TVOS TabView remove blank area


I have an apple tv app, I need to delete the blank area between tabView menu and my screen.

My Screen:

The screen that I hope:

The screen that I hope

The screen that I hope:


Solution

  • edgesIgnoringSafeArea(.top) solved the issue

    {
     ---- Content
     }
     .edgesIgnoringSafeArea(.top)