SwiftUI 如何解决Unable to infer complex closure return type; add explicit type to disambiguate

SwiftUI 如何解决Unable to infer complex closure return type; add explicit type to disambiguate

为了方便项目管理,我将之前散乱的项目文件进行了归类管理,然而在编译时就是收到上面的错误。

解决方案

这个应该是缓存造成的,清空项目缓存,关闭xcode。重新启动就好了


更多SwiftUI教程和代码关注专栏

发布了637 篇原创文章 · 获赞 4 · 访问量 5万+

猜你喜欢

转载自blog.csdn.net/iCloudEnd/article/details/104068347