在我将Xcode更新到13.0版本之前,我可以成功地编译和运行这些代码。但是这个错误现在出现了。 The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions 我试着分解我的观点,像这样重现它。我发现问题在第21行。代码: import SwiftUI
var EmojiArr: [Int] = [0x1f601, 0x
我正在尝试用SwiftUI构建一个我认为很简单的表单,但在从主体返回的视图(在本例中是Form,但我也尝试过VStack)上收到错误消息“the compiler is unable to type check this expression;try up up the expression to distinct sub sections”。如果我开始删除一些子视图,它似乎解决了,即使我的视图都没有直接返回10个子视图,我认为这是单个视图的限制(除了在ForEach中返回的视图)。 import SwiftUI