title: Error : Value of type 'String' has no member 'URLByAppendingPathComponent'
body: <p>My Error is:
  <strong>Value of type 'String' has no member 'URLByAppendingPathComponent'</strong></p>
  
  <p>I got error in this line :</p>
  
  <pre><code> let savePath = documentDirectory.URLByAppendingPathComponent("mergeVideo-\(date).mov")
  </code></pre>
  
  <p>My full code:</p>
  
  <pre><code>  // 4 - Get path
    let documentDirectory = NSSearchPathForDirectoriesInDomains(.DocumentDirectory, .UserDomainMask, true)[0] 
    var dateFormatter = NSDateFormatter()
    dateFormatter.dateStyle = .LongStyle
    dateFormatter.timeStyle = .ShortStyle
    let date = dateFormatter.stringFromDate(NSDate())
    let savePath = documentDirectory.URLByAppendingPathComponent("mergeVideo-\(date).mov")
  
      let url = NSURL(fileURLWithPath: savePath)
  </code></pre>
  
  <p>I followed this tutorial : <a href="http://www.raywenderlich.com/94404/play-record-merge-videos-ios-swift" rel="nofollow">Here</a></p>