You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I call this code : let exampleArray_get = try! StorageManager.default.arrayValue("exampleArray")
I get a error : Generic parameter 'T' could not be inferred
How to fix it
ps: Xcode version 10.3, swift 5.0
ths
The text was updated successfully, but these errors were encountered:
Hello @umangoo,
you should assign StorageManager.default.arrayValue("exampleArray") to a variable/constant to be able to infer your array type or at least cast it
for example: let stringArray: [String] = try StorageManager.default.arrayValue("exampleArray")
or try StorageManager.default.arrayValue("exampleArray") as [String]
When I call this code : let exampleArray_get = try! StorageManager.default.arrayValue("exampleArray")
I get a error : Generic parameter 'T' could not be inferred
How to fix it
ps: Xcode version 10.3, swift 5.0
ths
The text was updated successfully, but these errors were encountered: