有需要在无视SafeArea的View加上.edgesIgnoringSafeArea([...])即可。
无视SafeArea的View
.edgesIgnoringSafeArea([...])
例子:ZStack{...}.edgesIgnoringSafeArea([.top])
ZStack{...}.edgesIgnoringSafeArea([.top])