Mohammad Faani
Jul 22, 2017 · 1 min read

Your code snippet above…never write like that. It’s bad for your health.

Never have a trailing closure next to a normal closure.

Only use trailing closure when it’s the only closure in the call to a function.
If you have two closures then make pass them both with non-trailing format. It’s more semantic and easier to read!

    Mohammad Faani

    Written by

    iOS dev: https://stackoverflow.com/users/story/5175709

    Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
    Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
    Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade