Why does setting minWidth to .infinity crash SwiftUI app with EXC_BAD_INSTRUCTION?

Zor*_*ayr 5 xcode swift swiftui xcode11.4 ios13.4

Here is the exact code that I am running on iOS 13.4/Xcode 11.4:

import SwiftUI

struct TestView: View {

    var body: some View {
        VStack() {
            Text("Hello")
        }
        .frame(minWidth: .infinity)
    }
}

struct LoginView_Previews: PreviewProvider {
    static var previews: some View {
        TestView()
    }
}
Run Code Online (Sandbox Code Playgroud)

The crash happens in iOS, so it's hard to get much useful information other than the following:

Thread 1: EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)
#0  0x00007fff2c7cd371 in NSAttributedString.MetricsCache.findMetrics(requestedSize:) ()
Run Code Online (Sandbox Code Playgroud)

Setting minWidth to something other than .infinity fixes the crash, so my question is why is it crashing and should I report it to Apple?

nin*_*nes 6

.infinity是一个框架的允许值,但看起来maxWidth并非如此minWidth