try catch ios swift 4 code example
Example: swift do catch
do {
let sandwich = try makeMeSandwich(kitchen)
} catch let error {
print(error.localizedDescription)
}
do {
let sandwich = try makeMeSandwich(kitchen)
} catch let error {
print(error.localizedDescription)
}