我不知道如何查找用户键入的特定索引的数组值。我已将该数组连接到包含2个值的数据模型?
实现数据模型的新变量后,我尝试使用.contain值,但没有用
let productsNamess = document.data()["ProductName"] as! String
let quantityGame = document.data()["Quantity"] as! String
// making a new net stock data incoming class
let newClassForProducts = dataModelOutgoing()
newClassForProducts.productName = productsNamess
newClassForProducts.quantity = Int(quantityGame)
// forward data to main dataincoming main class
self.dataIncoming.append(newClassForProducts)
我不知道如何从一个数组中包含两个值的数组中取出数据。