This is our workaround to get the old behavior back:
GeometryReader { proxy in
ZStack {
Color.green
ZStack {
Color.yellow
Text("Hi")
}
.aspectRatio(1, contentMode: .fill)
.border(.red)
}
.frame(width: proxy.size.width, height: proxy.size.height)
}
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: