I tried to protect the conversion from string to Float to Int:
guard let v = Int (Float(” x”)) else {
return -1
} The swift 3 compiler complains:
value of optional type’Float?’ not unw
I tried to protect the conversion from string to Float to Int:
guard let v = Int (Float(” x”)) else {
return -1
} The swift 3 compiler complains:
value of optional type’Float?’ not unw