title: Xcode won't recognize a new Swift class
body: <p>I have created a new Swift class in a new file</p>
  
  <pre><code>import Foundation
  
  class RecordedAudio: NSObject{
      var filePathUrl: NSURL!
      var title: String!
  }
  </code></pre>
  
  <p>and now I want use it inside another class by creating a new object. </p>
  
  <pre><code>import UIKit
  import AVFoundation
  
  class recordSoundsViewController: UIViewController, AVAudioRecorderDelegate {
      var audioRecorder: AVAudioRecorder!
      var recordedAudio: RecordedAudio! // new object gives error
  </code></pre>
  
  <p>But Xcode is giving me the error "Use of undeclared type RecordedAudio" so I got stuck there. A similar question has been posted here: <a href="https://stackoverflow.com/questions/24029781/how-do-i-import-a-swift-file-from-another-swift-file">How do I import a Swift file from another Swift file?</a>
  but none of those solutions worked for me. BTW, this is part of the Udacity swift class. Thanks, any help would be appreciated.</p>