GetApps

0.2.0

A Swift package for getting a list of installed apps on a Mac
ghall89/swift-get-apps

What's New

0.2.0

2025-01-14T02:44:09Z

Breaking changes:

  • The getInstalledApps() function has been renamed to getAllApps()
  • Added the getUserApps() function, which replaces the ignoreSystemApps optional parameter for getInstalledApps()

swift-get-apps

GitHub License GitHub Release

A Swift package for retrieving a list of apps on a user's device, including name, bundle identifier, and icon.

Installation

SwiftPM

.package(url: "https://github.com/ghall89/swift-get-apps.git", from: "main")

Usage

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?

Examples

Get All Apps

import GetApps

let allApps = getAllApps()

Get Only User-Installed Apps

import GetApps

let userApps = getUserApps()

Description

  • Swift Tools 5.9.0
View More Packages from this Author

Dependencies

  • None
Last updated: Wed May 14 2025 10:22:03 GMT-0900 (Hawaii-Aleutian Daylight Time)