Instance Property

isMacCatalystApp

A Boolean value indicating whether the process is a Mac app built with Mac Catalyst.

Declaration

var isMacCatalystApp: Bool { get }

Discussion

This property returns true when the process is:

  • A Mac app built with Mac Catalyst

  • Running on a Mac device

Frameworks supporting iOS and macOS should use this property to determine if the process is a Mac app built with Mac Catalyst. Apps should not use this property, but should use #if targetEnvironment(macCatalyst) instead to conditionally compile source code intended to run in macOS only.

See Also

Accessing Process Information

var arguments: [String]

Array of strings with the command-line arguments for the process.

var environment: [String : String]

The variable names (keys) and their values in the environment from which the process was launched.

var globallyUniqueString: String

Global unique identifier for the process.

var processIdentifier: Int32

The identifier of the process (often called process ID).

var processName: String

The name of the process.