try? as? in swiftui code example
Example: try? as? in swiftui
if let result = try? checkPassword("password") {
print("Result was \(result)")
} else {
print("D'oh.")
}
if let result = try? checkPassword("password") {
print("Result was \(result)")
} else {
print("D'oh.")
}