If not let - in Swift

前端 未结 3 962
情歌与酒
情歌与酒 2020-12-29 01:14

is there is a way to negate the \"if let\" in swift? This looks silly to me:

    if let type = json.type  {

    } else {
        XCTFail(\"There is no type         


        
3条回答
提交回复
热议问题