SwiftUI 随手笔记-解决@ViewBuilder block中 Ambiguous reference to member 'buildBlock()'错误
SwiftUI的@ViewBuilder有一个限制,单个@ViewBuilderblock如果绘制超过10个View,系统就会报错,比如Ambiguousreferencetomember'buildBlock()'错误如图所示9FDDC5CD-B03B-462F-9C74-429370AFC806.png解决办法如下1.可以直接在block内部用Group,Section,Stack之类容器来拆