Answers for "swiftui check if "Any" is nil"

1

how to check object is nil in swift

if let variableName = abc { // If casting, use, eg, if let var = abc as? NSString
    // variableName will be abc, unwrapped
} else {
    // abc is nil
}
Posted by: Guest on November-20-2019

Code answers related to "swiftui check if "Any" is nil"

Code answers related to "Swift"

Browse Popular Code Answers by Language