📜  尝试?作为?在 swiftui - Swift 代码示例

📅  最后修改于: 2022-03-11 15:01:03.634000             🧑  作者: Mango

代码示例1
if let result = try? checkPassword("password") {
    print("Result was \(result)")
} else {
    print("D'oh.")
}