title: Twitter Authentication on Swift and SafariServices.framework
body: <p>I am trying to implment Twitter authentication on my Swift based app by following the doc <a href="https://dev.twitter.com/twitterkit/ios/log-in-with-twitter" rel="nofollow noreferrer">https://dev.twitter.com/twitterkit/ios/log-in-with-twitter</a></p>
  
  <p>At the "Prerequisites" Section:</p>
  
  <blockquote>
    <p>3.Add <em>SafariServices.framework</em> to use <em>SFSafariViewController</em>.</p>
  </blockquote>
  
  <p>My understanding is, it will use Safari in my App to register or login with Twitter, if the Twitter App is not installed.</p>
  
  <p>However, what I don't understand is:</p>
  
  <ol>
  <li><p>If I add the following to my ViewController, meaning the same as SafariServices.framework?</p>
  
  <blockquote>
    <p>import SafariServices</p>
  </blockquote></li>
  <li><p>What does it exactly mean by </p>
  
  <blockquote>
    <p>"to use <em>SFSafariViewController</em>"? </p>
  </blockquote></li>
  </ol>
  
  <p>Do I need to add additional inheritance in my ViewController class?</p>