<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:05 PM, Ryan Lovelett <<a href="mailto:swift-dev@ryan.lovelett.me" class="">swift-dev@ryan.lovelett.me</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
<title class=""></title>
<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=""> </div>
<div class=""><blockquote type="cite" class=""><div class="">On Apr 21, 2016, at 12:57 PM, Charles Lane via swift-users <<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>> wrote:<br class=""></div>
<div 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=""> </div>
<div class="">let string = "Here is a string"<br class=""></div>
<div 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=""> </div>
<div class="">Can someone tell me what the ‘string.drawWithRect changed to?<br class=""></div>
</div>
</div>
</blockquote></div>
<div 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 class="colour" style=""> </span><span style="font-variant-ligatures:no-common-ligatures;" class="">@available</span><span class="colour" style="">(</span><span style="font-variant-ligatures:no-common-ligatures;" class="">iOS</span><span class="colour" style=""> </span><span class="colour" style="color:rgb(39, 42, 216)">7.0</span><span class="colour" style="">, *)</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=""> </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=""> </div></div></div></blockquote><div><br class=""></div><div>I clicked through to the UIKit module, from there to NSString extensions, and then looked for draw.</div><div><br class=""></div><div>-- E</div><br class=""><blockquote type="cite" class=""><div class=""><div class="">
<blockquote type="cite" class=""><div class=""> </div>
<div 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 </span>in: or inRect:.<br class=""></div>
<div class=""> </div>
<div class=""><span style="font-variant-ligatures:no-common-ligatures;" class="">-- E</span><br class=""></div>
<div class=""><u class="">_______________________________________________</u><br class=""></div>
<div class="">swift-users mailing list<br class=""></div>
<div class=""><a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a><br class=""></div>
<div class=""><a href="https://lists.swift.org/mailman/listinfo/swift-users" class="">https://lists.swift.org/mailman/listinfo/swift-users</a><br class=""></div>
</blockquote><div class=""> </div>
</div>
</div></blockquote></div><br class=""></body></html>