title: Value of type 'Data' has no member 'writeToURL'
body: <p>I am converting code into swift 3 syntax</p>
  
  <pre><code>if !data.writeToURL(manifestFileURL, atomically: false) {
        self.didFailWithError(WebAppError.fileSystemFailure(reason: "Could not write asset manifest to: \(manifestFileURL)", underlyingError: error))
        return
  }
  </code></pre>
  
  <p>but I am getting the error</p>
  
  <p><strong>Value of type 'Data' has no member 'writeToURL'</strong></p>
  
  <p>I have converted the code to</p>
  
  <pre><code>if try!data.write(to: manifestFileURL, atomically: false) {
        self.didFailWithError(WebAppError.fileSystemFailure(reason: "Could not write asset manifest to: \(manifestFileURL)", underlyingError: error))
        return
  }
  </code></pre>
  
  <p>following the swift 3 syntax and current methods (<a href="https://developer.apple.com/reference/foundation/nsdata/1415134-write" rel="nofollow noreferrer">https://developer.apple.com/reference/foundation/nsdata/1415134-write</a>) but I get errors saying that <strong>this is not the correct overload for the function</strong>. Please, what is the correct way to write this out in swift 3. Any information that can lead me in the right direction will be greatly appreciated.</p>
  
  <p>Thanks</p>