Really interesting that Swift has do, but it’s not what you think!

do {
    try throwingFunction1()
    nonThrowingFunction1()
} catch {
    print("Handle errors here")
}

In JS, that do would be try and no “try” is required before a throwing function.

Day 8 in the books! #100DaysOfSwiftUI

Chasen @chasen