I am attempting to cover the entire screen (iPad and iPhone) while using a TabView, but there always remains the bottom strip that is not covered.
struct CoverTestApp: App {
var body: some Scene {
WindowGroup {
ContentView()
.edgesIgnoringSafeArea(.all)
}
}
}
struct ContentView: View {
var body: some View {
TabView {
ForEach(0...10, id: \.self) { page in
ZStack {
Color(.blue).opacity(0.2)
Text("Page \(page)")
}
}
}
.tabViewStyle(.page)
}
}
I have also used .fullScreenCover(isPresented:, content:), but the same issue remains... everything is covered apart from the bottom.
How can I get this to work and the app to cover the entire screen without white bar and the handle on the bottom?

.ignoresSafeArea()(not.edgesIgnoringSafeArea, because it's deprecated) to theTabViewitself and to the page content. In your example, the content is theZStackinside theForEach. This should fix the bottom margin, but it also causes the page indicators to be lower. The post SwiftUI - TabView Safe Area addresses the issue of the indicators..ignoresSafeArea()on theContentView. Tested on an iPhone 16 simulator running iOS 18.5.