.documentDirectory
๐ ๅ่๏ผSwift Playgrounds โฉ Image Gallery (Data Model: Gathering Image URLs)
import Foundation
extension FileManager {
/// URL of the app's document directory.
var documentDirectory: URL? {
urls(for: .documentDirectory, in: .userDomainMask).first
}
}
Last updated
Was this helpful?