The code shows one thing and the preview another

Hi! So the code says that my image is ignoring the safe area, and so does the preview show. BUT the simulator does not show that the safe area is covered. The code is always right? Right..?

import SwiftUI



struct Tab1: View {

    private var numberOfImages = 3

    private let timer = Timer.publish(every: 10, on: .main, in: .common).autoconnect()

    @State private var currentIndex = 0

    var body: some View {

        GeometryReader { proxy in

            TabView(selection:$currentIndex) {

            ForEach(0..<numberOfImages) { num in

                Image("\(num)")

                    .tag("num")

                // overlay(Color.black.opacity(0)) if relevant

            }

            }.tabViewStyle(PageTabViewStyle())

            .frame(width: proxy.size.width, height: proxy.size.height / 3).ignoresSafeArea(.all, edges: .top)

            .onReceive(timer, perform: { _ in

                withAnimation {

                currentIndex = currentIndex < numberOfImages ? currentIndex + 1 : 0

                }

            })

        }

        }

    }

struct Tab1_Previews: PreviewProvider {

    static var previews: some View {

        Tab1()

    }

  }```

The code shows one thing and the preview another
 
 
Q