I'm going to see if this is fixed in Xcode 12.3. The gist that @steipete linked to fixed another (slightly unrelated) issue I was having, which was an infinite layout crash that I was seeing on xcode 12.1 on iOS14 (only on notched devices): Pin UIHostingController's view to the edges of a parent UIView
Translate that parent UIView to be partially below the screen
Resize the SwiftUI content to be a larger size than it was originally
You'll get an infinite layoutSubviews crash without that slightly terrible gist. SwiftUI can't seem to handle having partially off-screen content when safeAreas are in the mix.
There's something about SwiftUI's layout system that tries to automatically avoid those areas of the screen which causes lots of issues.
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: