Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
希望将 inout 数组参数分配给本地 var 但出现错误
转义闭包只能通过值显式捕获 inout 参数
以下是代码
func setData( feedsData: inout [FeedStruct]) { DispatchQueue.main.async { self.arrData = feedsData // here is the error ....