ignoresSafeArea issue

Hi!, I am new to swift and for whatever reason when I am running this code, it leaves a huge white border, when it should be filling the entire screen. Please keep in mind this code is from a Udemy video from 2 years ago and I know swift is always updating. But I wouldn't think that it would have changed this much. Also im running macOS Sonoma beta 7, Xcode beta 8 and iOS 17 beta 8

  ZStack {
            Color("ColorBlue")
                .ignoresSafeArea(.all, edges: .all) 

"more code here..."
}

Answered by Appleexpert1 in 763487022

Figured it out! I had a

.padding()

in the code that was causing this issue!

Accepted Answer

Figured it out! I had a

.padding()

in the code that was causing this issue!

ignoresSafeArea issue
 
 
Q