Skip to content

Instantly share code, notes, and snippets.

@saoudrizwan
Last active July 17, 2017 00:26
Show Gist options
  • Select an option

  • Save saoudrizwan/ff3ef9795e24bb900995d458fe784122 to your computer and use it in GitHub Desktop.

Select an option

Save saoudrizwan/ff3ef9795e24bb900995d458fe784122 to your computer and use it in GitHub Desktop.
func getDocumentsURL() -> URL {
if let url = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first {
return url
} else {
fatalError("Could not retrieve documents directory")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment