Last active
July 17, 2017 00:26
-
-
Save saoudrizwan/ff3ef9795e24bb900995d458fe784122 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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