<div dir="ltr">Never mind, .dynamicType works, it just doesn't autocomplete any more. /facepalm</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 10, 2016 at 11:54 AM, Nate Birkholz <span dir="ltr"><<a href="mailto:nbirkholz@gmail.com" target="_blank">nbirkholz@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">self.dynamicType doesn't work any more, but type(of: self) is just Swift 3.0 So how do i get the class?<div><br></div><div>Use case in a unit test: </div><div>
<p class="m_-151550723690587507gmail-p1"><span class="m_-151550723690587507gmail-s1">let</span><span class="m_-151550723690587507gmail-s2"> bundle = </span><span class="m_-151550723690587507gmail-s3">NSBundle</span><span class="m_-151550723690587507gmail-s2">(forClass: type(of: </span><span class="m_-151550723690587507gmail-s1">self</span><span class="m_-151550723690587507gmail-s2">))</span></p><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><div class="m_-151550723690587507gmail_signature">Nate Birkholz</div>
</font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Nate Birkholz</div>
</div>