I need url filepath be a URL (NSURL in old versions of Swift). I have this:
let paths = NSSearchPathForDirectoriesInDomains( .documentDirectory, .userDom
In swift 3 use:
let url = URL(string: "Whatever url you have(eg: https://google.com)")