title: Swift class vs Cocoa Touch Class in Xcode6
body: <p>I am new to iOS development and have started directly with Swift.</p>
  
  <p>When I want to add a new file to a project, the IDE presents me with two files which seem to be used interchangeably in the tutorials that I have seen so far.
  They are "Cocoa Touch Class" and "Swift Class".</p>
  
  <p>When I create a new Cocoa Touch Class, this is what I get(depending on the class inherited)</p>
  
  <pre><code>import UIKit
  
  class CtTest: NSObject {
  
  }
  </code></pre>
  
  <p>and when I create a new Swift file, I get this:-</p>
  
  <pre><code>import Foundation
  </code></pre>
  
  <p>The extension for both of these classes is .swift</p>
  
  <p>If I add the class definition to the Swift file and modify it as follows:-</p>
  
  <pre><code>import UIKit
  import Foundation
  
  class SwTest:NSObject
  {
  }
  </code></pre>
  
  <p>is there any difference that remains between the two files.</p>
  
  <p>If so, which classes are preferred in what scenarios eg. View Controllers, Models etc.</p>
  
  <p>Thank You</p>