<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="">On Apr 21, 2016, at 2:23 PM, Ryan Lovelett &lt;<a href="mailto:swift-dev@ryan.lovelett.me" class="">swift-dev@ryan.lovelett.me</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class="">


<title class=""></title>

<div class=""><div class="">On Thu, Apr 21, 2016, at 04:13 PM, Erica Sadun wrote:<br class=""></div>
<blockquote type="cite" class=""><div class="">&nbsp;</div>
<div class=""><blockquote type="cite" class=""><div class="">On Apr 21, 2016, at 2:05 PM, Ryan Lovelett &lt;<a href="mailto:swift-dev@ryan.lovelett.me" class="">swift-dev@ryan.lovelett.me</a>&gt; wrote:<br class=""></div>
<div class="">&nbsp;</div>
<div class=""><div class=""><div class="">On Thu, Apr 21, 2016, at 03:50 PM, Erica Sadun via swift-users wrote:<br class=""></div>
<blockquote type="cite" class=""><div class="">&nbsp;<br class=""></div>
<div class=""><blockquote type="cite" class=""><div class="">On Apr 21, 2016, at 12:57 PM, Charles Lane via swift-users &lt;<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>&gt; wrote:<br class=""></div>
<div class="">&nbsp;<br class=""></div>
<div class=""><div class=""><div class="">While rebuilding some apps using the new development trunk build, I figured out the naming changes to just about everything but this:<br class=""></div>
<div class="">&nbsp;<br class=""></div>
<div class="">let string = "Here is a string"<br class=""></div>
<div class="">&nbsp;<br class=""></div>
<div class="">string.drawWithRect(CGRect(x: 10, y: 10, width: 200, height: 200), options: .usesLineFragmentOrigin, attributes: attrs, context: nil)<br class=""></div>
<div class="">&nbsp;<br class=""></div>
<div class="">Can someone tell me what the â€˜string.drawWithRect changed to?<br class=""></div>
</div>
</div>
</blockquote></div>
<div class="">&nbsp;<br class=""></div>
<div class=""><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:18px;line-height:normal;font-family:Menlo;color:rgb(187, 44, 162);" class=""><span style="" class="">&nbsp; &nbsp;&nbsp;</span><span style="font-variant-ligatures:no-common-ligatures;" class="">@available</span><span style="" class="">(</span><span style="font-variant-ligatures:no-common-ligatures;" class="">iOS</span><span style="" class=""> </span><span class="colour" style="color:rgb(39, 42, 216)">7.0</span><span style="" class="">, *)</span><br class=""></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:18px;line-height:normal;font-family:Menlo;" class=""><span style="font-variant-ligatures:no-common-ligatures;" class=""></span><span class="colour" style="color:rgb(187, 44, 162)">public</span><span style="font-variant-ligatures:no-common-ligatures;" class=""> </span><span class="colour" style="color:rgb(187, 44, 162)">func</span><span style="font-variant-ligatures:no-common-ligatures;" class=""> draw(with rect: </span><span class="colour" style="color:rgb(112, 61, 170)">CGRect</span><span style="font-variant-ligatures:no-common-ligatures;" class="">, options: </span><span class="colour" style="color:rgb(112, 61, 170)">NSStringDrawingOptions</span><span style="font-variant-ligatures:no-common-ligatures;" class=""> = [], attributes: [</span><span class="colour" style="color:rgb(112, 61, 170)">String</span><span style="font-variant-ligatures:no-common-ligatures;" class=""> : </span><span class="colour" style="color:rgb(112, 61, 170)">AnyObject</span><span style="font-variant-ligatures:no-common-ligatures;" class="">]? = [:], context: </span><span class="colour" style="color:rgb(112, 61, 170)">NSStringDrawingContext</span><span style="font-variant-ligatures:no-common-ligatures;" class="">?)</span><br class=""></div>
</div>
</blockquote><div class="">&nbsp;<br class=""></div>
<div class="">Erica would you mind discussing/explaining how you went about figuring out what this function signature was? It looked like you copied/pasted it from Xcode (based on the styling). Did you just know the function and go to its source?<br class=""></div>
<div class="">&nbsp;<br class=""></div>
</div>
</div>
</blockquote><div class="">&nbsp;</div>
<div class="">I clicked through to the UIKit module, from there to NSString extensions, and then looked for draw.<br class=""></div>
</div>
</blockquote><div class="">&nbsp;</div>
<div class="">Thank you</div>
<blockquote type="cite" class=""><div class=""><blockquote type="cite" class=""><div class=""><div class=""><blockquote type="cite" class=""><div class="">&nbsp;<br class=""></div>
<div class=""><span style="font-variant-ligatures:no-common-ligatures;" class="">Not personally a fan since "with" makes no sense for a geometric boundary unlike&nbsp;</span>in: or inRect:.<br class=""></div>
<div class="">&nbsp;<br class=""></div>
<div class=""><span style="font-variant-ligatures:no-common-ligatures;" class="">-- E</span><br class=""></div>
</blockquote></div></div></blockquote></div></blockquote></div></div></blockquote><br class=""></div><div>Sadly, I don't know any way to provide "your automatic translation offends my aesthetics" feedback.</div><div><br class=""></div><div>-- E</div><div><br class=""></div><br class=""></body></html>