Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Question: Explain the 'escaping' closure and why it's necessary in Swift.
Answer: An 'escaping' closure is a closure that is called after the function it was passed to has returned. It's necessary when the closure is stored or outlives the scope of the function.
Is it helpful? Yes No

Most helpful rated by users:

©2025 WithoutBook