<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">Le 11 févr. 2016 à 15:06, Radosław Pietruszewski &lt;<a href="mailto:radexpl@gmail.com" class="">radexpl@gmail.com</a>&gt; a écrit :</div><br class="Apple-interchange-newline"><div class=""><div class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Besides — this seems like an edge case anyway. I very rarely see invocations long enough to be compelled to split it into multiple lines, and even if I would, I’d do it like this:</div><div class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br class=""></div><div class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span class="Apple-tab-span" style="white-space: pre;">        </span>attachmentFor(image: …,</div><div class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span class="Apple-tab-span" style="white-space: pre;">                                </span>extraParam: ….)</div></div></blockquote><br class=""></div><div>This goes against Xcode automatic indentation: it will blow your example code into a white space chaos.</div><div><br class=""></div><div>But maybe you are using other tools. With Xcode, a serious tool that deserves consideration as much as critics, the only pragmatic way to invoke a function using several lines is the following:</div><div><br class=""></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>attachmentFor(</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>&nbsp; &nbsp;&nbsp;image: …,</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>&nbsp; &nbsp;&nbsp;extraParam: ….)</div><div class=""><div class=""><br class=""></div></div><div class="">Oh, and this is not an edge case. Just look at UIView animation methods.</div><div class=""><br class=""></div><div class="">Gwendal</div><div class=""><br class=""></div></body></html>