Files
xcodesApp-mirror/Xcodes/Backend/Downloader.swift
Anand Biligiri 6e64db26fb Disallow changes to managed preferences
- Define enumerations for preferences that can be managed in an enterprise environment using MDM
- Add methods in AppState to check for managed preferences
- Update Advanced, Download, Experiments and Update preference panes to disable controls
  to modify any of the managed preferences
- Update Xcode category list button to be disabled if preference is managed
2024-06-21 07:17:18 +05:30

19 lines
420 B
Swift

import Foundation
import Path
public enum Downloader: String, CaseIterable, Identifiable, CustomStringConvertible {
case aria2
case urlSession
public var id: Self { self }
public var description: String {
switch self {
case .urlSession: return "URLSession"
case .aria2: return "aria2"
}
}
var isManaged: Bool { PreferenceKey.downloader.isManaged() }
}