title: Show color on full screen in SwiftUI
body: <p>I'm trying to show red color in full screen.</p>
  <p>If I use <code>edgesIgnoringSafeArea(.all)</code> the screen automatically becomes scrolling enabled, which I don't want. Can you please advise me how to show red color on full screen without scrolling and without stretching because i change the color to image.</p>
  <p>Any help would be greatly appreciated.</p>
  <hr />
  <p>Sample code is given below.</p>
  <pre><code>import SwiftUI
  
  struct PageSetup: View {
  
    @State private var tabSelection = 0
  
    var body: some View {
      ZStack {
        TabView(selection: $tabSelection) {
          ForEach(0..&lt;5) { index in
            ZStack {
              Color.red
              Text(&quot;\(index)&quot;)
            }
          }
        }
        .tabViewStyle(PageTabViewStyle())
        .onAppear {
          UIScrollView.appearance().bounces = false
        }
        .tabViewStyle(PageTabViewStyle())
      }
    }
  }
  </code></pre>
  <hr />
  <p>Output</p>
  <p><img src="https://i.stack.imgur.com/5TQ7O.png" alt="" /></p>