Answers for "print document path swift"

1

print document directory path swift

func getDocumentsDirectory() -> URL {
    let paths = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)
    let documentsDirectory = paths[0]
    return documentsDirectory
}
Posted by: Guest on June-08-2021

Code answers related to "Swift"

Browse Popular Code Answers by Language