SwiftUI - edgesIgnoringSafeArea behaves differently in iOS 13.4

Viewed 1612

I've noticed that in my app .edgesIgnoringSafeArea renders my view differently in iOS 13.3 vs. iOS 13.4.

In my ContentView I have a modifier of .edgesIgnoringSafeArea(.top) applied. This displayed correctly in all iOS 13 versions leading up to 13.4. Now in the GM of 13.4 the top and bottom of the view is getting cut off.

Here's my ContentView

struct ContentView: View {
@EnvironmentObject var session: SessionStore
func getUser() {
    session.listen()
}



var body: some View {

        Group {
            ZStack {
                TabView {
                    ExploreView().tabItem {
                        Image(systemName: "house.fill")
                        Text("Explore")
                    }.tag(1)
                    FestivalsView().tabItem {
                        Image(systemName: "globe")
                        Text("Festivals")
                    }.tag(2)
                    ProfileView().tabItem {
                        Image(systemName: "person.crop.circle.fill")
                        Text("Profile")
                    }.tag(3)
                }
                .accentColor(Color("wdwPurple"))
                .edgesIgnoringSafeArea(.top)
    }
        }.onAppear(perform: getUser)
    }
}

Here's how it displays:

enter image description here

Any ideas?

2 Answers

In fact, on iOS GM 13.4 look like is correct, because is ignore top safe area

I removed the modifier and it seemed to display correctly. Like other people have said, the simulator isn't a great indicator of how things actually render on an actual device.

Related