Here is the code where I get the error:
for (key, value) in info { let fieldValue: AnyObject? = value if (!fieldValue || fieldValue?.length == 0) {
This is what Xcode suggests using, which causes another error:
for (key, value) in info { let fieldValue: AnyObject? = value if ((!fieldValue || fieldValue?.length == 0) != nil) { //bool not convertible to string informationComplete = false; } }
Help is appreciated.
thank you for your time
source share