In Swift, the @escaping keyword is used to indicate that a closure can outlive the scope of the function in which it is defined. This is especially relevant in asynchronous operations, such as network calls, completion handlers, or when storing closures in properties.

You typically use @escaping in scenarios such as: