我在初始化一个Bool时遇到了麻烦,它一直给我带来错误,我似乎找不到解决办法。我在下面的代码中遇到的错误是“无法将'Binding‘类型的值赋值给'Bool'”@ObservedObject var viewModel: ProfileViewModel
@Binding var isFollowed: Bool
我是Swift的新手,我不知道为什么我会犯以下错误:main.swift:17:13: error: cannot convert value of type 'Int'to expected argument type 'Bool' ^~~~~~~~~~
main.swift:21:12: error: cannot convert value of type 'Int&