Concept Flow - Trailing closure syntax
Call function with closure
Is closure last argument?
No→Use normal closure syntax
Yes
Use trailing closure syntax
Execute closure body
Return from function
This flow shows how Swift decides to use trailing closure syntax when the closure is the last argument in a function call.