Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

save file with % swift

func getDocumentsDirectory() -> URL {
    let paths = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)
    return paths[0]
}
Source by www.hackingwithswift.com #
 
PREVIOUS NEXT
Tagged: #save #file #swift
ADD COMMENT
Topic
Name
3+3 =