In Swift, I have a function that I am passing an array to, and then using that array in another function. I keep getting this error:
Cannot convert value of type 'Array[String]' to expected argument type 'Set<String>'
@objc func getProductInfo(productIDs: Array<String>) -> Void {
print(productIDs) //this works with correct data
SwiftyStoreKit.retrieveProductsInfo(productIDs) { result in
...
The rest works, and is tested when I pass in a regular array of ["Monthly", "Yearly", "etc..."].
SwiftyStoreKit.retrieveProductsInfo()look like?retrieveProductsInfo()? Clearly it expects something other than what you are giving it, or else you wouldn't be getting the error.func getProductInfo(productIDs: Set<String>