SwiftUI Crash: Text Within ScrollView

Originator:Larryryu
Number:rdar://FB8826494 Date Originated:10/25/2020
Status:Open Resolved:
Product:SwiftUI Product Version:
Classification: Reproducible:
 
The crash occurs when Text (initialized with Date) is a child of a ScrollView. Note it doesn’t seem to matter how deeply nested Text is within the ScrollView. Got the same crash with 5 levels of HStack between the ScrollView and Text. See attached "bt_all_output.txt" for backtrace when the crash occured.

I was able to reproduce the crash with Xcode 12.0.1 (12A7300) as well as Xcode 12.2 beta 3 (12B5035g) on an 11 inch iPad Pro, iOS 14.0.1 device as well as simulator.

Code below is the simplest way to reproduce

```
import SwiftUI

@main
struct DateTextCrashApp: App {
    var body: some Scene {
        WindowGroup {
            ScrollView {
                Text( Date(timeIntervalSinceNow: 20), style: .relative )
            }
        }
    }
}
```

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!