一个 Swift 包,用于检索用户设备上的应用列表,包括名称、Bundle Identifier 和图标。
.package(url: "https://github.com/ghall89/swift-get-apps.git", from: "main")
getInstalledApps()
函数返回一个已安装应用的数组,使用以下符合 identifiable 和 hashable 协议的数据结构:
struct InstalledApp
id: UUID
location: URL
bundleId: String
name: String
icon: NSImage?
import GetApps
let allApps = getAllApps()
import GetApps
let userApps = getUserApps()