๐ง ๆฝๅทฅไธญ
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