Files
sst/Sources/Sst/AppIdentity.swift
T

19 lines
708 B
Swift

import Foundation
/// The one place that knows the app's name, so renaming it later is a one-file change.
enum AppIdentity {
static let displayName = "Sst"
static let supportFolderName = "Sst"
static let brandCaption = "SST · FIELD RECORDER"
}
enum AppPaths {
static var support: URL {
FileManager.default.urls(for: .applicationSupportDirectory, in: .userDomainMask)[0]
.appending(path: AppIdentity.supportFolderName, directoryHint: .isDirectory)
}
static var dictionary: URL { support.appending(path: "dictionary.txt") }
static var history: URL { support.appending(path: "history.json") }
static var note: URL { support.appending(path: "note.txt") }
}