Skip to content

Glossary: SwiftUI

throws

Also written: try, do/catch, catch

Swift's error handling: a function marked `throws` can fail, callers use `try`, and `catch` handles the error. `loadMenu` catches every error and turns it into a message.

Where the book teaches it

Related terms

async / awaitguard