SwiftUI - Layouts gone wild after latest Xcode update

58 Views Asked by At

After I updated the Xcode to 11.4 (11E146), all of my views has expanded vertically and does not fit the screen. It was all working fine before the update. The problem is happening in the Preview and Simulator. It is same whether the view has navigation or not, Here is an example

enter image description here

Anyone had the same problem and got any solution?

1

There are 1 best solutions below

0
On BEST ANSWER

Deleting the below View Modifier from TabView fixed it.

.edgeIngoringSafeArea(.top)