Question: What is the purpose of the '@escaping' keyword in Swift?Answer: The '@escaping' keyword is used in Swift to indicate that a closure passed as a parameter to a function may be stored beyond the lifetime of that function. |
Is it helpful?
Yes
No
Most helpful rated by users:
- What is Swift?
- Explain optionals in Swift.
- What is the difference between \'let\' and \'var\' in Swift?
- What are property observers in Swift?
- What is the purpose of the \'static\' keyword in Swift?