<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div>On Thu, Apr 21, 2016, at 03:50 PM, Erica Sadun via swift-users wrote:<br></div>
<blockquote type="cite"><div> </div>
<div><blockquote type="cite"><div>On Apr 21, 2016, at 12:57 PM, Charles Lane via swift-users <<a href="mailto:swift-users@swift.org">swift-users@swift.org</a>> wrote:<br></div>
<div> </div>
<div><div><div>While rebuilding some apps using the new development trunk build, I figured out the naming changes to just about everything but this:<br></div>
<div> </div>
<div>let string = "Here is a string"<br></div>
<div> </div>
<div>string.drawWithRect(CGRect(x: 10, y: 10, width: 200, height: 200), options: .usesLineFragmentOrigin, attributes: attrs, context: nil)<br></div>
<div> </div>
<div>Can someone tell me what the ‘string.drawWithRect changed to?<br></div>
</div>
</div>
</blockquote></div>
<div> </div>
<div><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);"><span class="colour" style="color:rgb(0, 0, 0)"> </span><span style="font-variant-ligatures:no-common-ligatures;">@available</span><span class="colour" style="color:rgb(0, 0, 0)">(</span><span style="font-variant-ligatures:no-common-ligatures;">iOS</span><span class="colour" style="color:rgb(0, 0, 0)"> </span><span class="colour" style="color:rgb(39, 42, 216)">7.0</span><span class="colour" style="color:rgb(0, 0, 0)">, *)</span><br></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:18px;line-height:normal;font-family:Menlo;"><span style="font-variant-ligatures:no-common-ligatures;"> </span><span class="colour" style="color:rgb(187, 44, 162)">public</span><span style="font-variant-ligatures:no-common-ligatures;"> </span><span class="colour" style="color:rgb(187, 44, 162)">func</span><span style="font-variant-ligatures:no-common-ligatures;"> draw(with rect: </span><span class="colour" style="color:rgb(112, 61, 170)">CGRect</span><span style="font-variant-ligatures:no-common-ligatures;">, options: </span><span class="colour" style="color:rgb(112, 61, 170)">NSStringDrawingOptions</span><span style="font-variant-ligatures:no-common-ligatures;"> = [], attributes: [</span><span class="colour" style="color:rgb(112, 61, 170)">String</span><span style="font-variant-ligatures:no-common-ligatures;"> : </span><span class="colour" style="color:rgb(112, 61, 170)">AnyObject</span><span style="font-variant-ligatures:no-common-ligatures;">]? = [:], context: </span><span class="colour" style="color:rgb(112, 61, 170)">NSStringDrawingContext</span><span style="font-variant-ligatures:no-common-ligatures;">?)</span><br></div>
</div>
</blockquote><div> </div>
<div>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></div>
<div> </div>
<blockquote type="cite"><div> </div>
<div> </div>
<div><span style="font-variant-ligatures:no-common-ligatures;">Not personally a fan since "with" makes no sense for a geometric boundary unlike </span>in: or inRect:.<br></div>
<div> </div>
<div><span style="font-variant-ligatures:no-common-ligatures;">-- E</span><br></div>
<div><u>_______________________________________________</u><br></div>
<div>swift-users mailing list<br></div>
<div><a href="mailto:swift-users@swift.org">swift-users@swift.org</a><br></div>
<div><a href="https://lists.swift.org/mailman/listinfo/swift-users">https://lists.swift.org/mailman/listinfo/swift-users</a><br></div>
</blockquote><div> </div>
</body>
</html>