🚧 施工中
Swift ⟩ statement ⟩ do
a statement that is used to introduce a new scope and can optionally contain one or more catch clauses, which contain patterns that match against defined error conditions. (similar to curly braces ({}) in C used to delimit a code block)
catch
{}
⛔ error: unlabeled break is only allowed inside a loop or switch, a labeled break is required to exit an if or do. ( 👉 see: for...in vs. forEach )
Statements ⟩ do statement
UI: do { } in Swift
catch clause
Last updated 2 years ago
Was this helpful?