.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