Cross-platform Xcode replacement. Build and deploy iOS apps with SwiftPM on Linux, Windows, macOS.
import Foundation
import Dependencies
private struct PersistentDirectoryProvider: DependencyKey, Sendable {
var directory: URL
static let liveValue = PersistentDirectoryProvider(
directory: URL(fileURLWithPath: NSHomeDirectory())
.appendingPathComponent(".config/xtool")
)
}
extension DependencyValues {
public var persistentDirectory: URL {
get { self[PersistentDirectoryProvider.self].directory }
set { self[PersistentDirectoryProvider.self].directory = newValue }
}
}