A Swift package for retrieving a list of apps on a user's device, including name, bundle identifier, and icon.
.package(url: "https://github.com/ghall89/swift-get-apps.git", from: "main")
The getInstalledApps()
function returns an array of installed apps using the following data struct that conforms to identifiable and hashable:
struct InstalledApp
id: UUID
location: URL
bundleId: String
name: String
icon: NSImage?
import GetApps
let allApps = getAllApps()
import GetApps
let userApps = getUserApps()