<div style="white-space:pre-wrap">In general you shouldn&#39;t depend on what description returns for classes, etc. outside of your control unless it is documented (e.g. part of the API contract). If you want a specific output you should code up something to format the output as you need.<br><br>-Shawn</div><br><div class="gmail_quote"><div dir="ltr">On Thu, Sep 22, 2016 at 3:33 PM Robert Nikander via swift-users &lt;<a href="mailto:swift-users@swift.org">swift-users@swift.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I’ve run into a problem when updating to new Swift in Xcode 8. There was some NSData in a string like this:<br>
<br>
    “ … \(data) … “<br>
<br>
It changed to type `Data`, and the string went from hexadecimal bytes to writing “20 bytes”. I’m doing a quick bug fix app release now. I can’t remember if Xcode auto converted this for me. I thought it did.  ?  Either way… seems like they should behave the same here, no?<br>
<br>
Rob<br>
<br>
<br>
_______________________________________________<br>
swift-users mailing list<br>
<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-users" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-users</a><br>
</blockquote></div>