Use if let
to parse the optional value:
if let value = result {
print(value)
}
2
solved How can I get the string value in Optional() in swift, which is followed by nil? [duplicate]
Use if let
to parse the optional value:
if let value = result {
print(value)
}
2
solved How can I get the string value in Optional() in swift, which is followed by nil? [duplicate]