SwiftUI VStack 放多几个组件就报 Argument passed to call that takes no arguments 何解?
資深大佬 : krabs 85
报错的代码 struct CarInfo: View { @State var showAlert = false var body: some View { VStack{ List { Text(“123”) //此处报错 Argument passed to call that takes no arguments Text(“123”) Text(“123”) Text(“123”) Text(“123”) Text(“123”) Text(“123”) Text(“123”) Text(“123”) Text(“123”) Text(“123”) //但是 删除几个 Text 组件后 就没报错 怎么办? } } }
大佬有話說 (2)