Unable to infer complex closure return type with SwiftUI

后端 未结 5 1123
执念已碎
执念已碎 2020-12-17 09:35

Following part 3 of Apple\'s tutorial on SwiftUI, Handling User Input, I get this error:

Unable to infer complex closure return type; add explicit ty

5条回答
  •  忘掉有多难
    2020-12-17 10:38

    I encountered the problem in a subview where a @Binding prop was of a different type of the @Binding source.

提交回复
热议问题