Contents

isMacCatalystApp

A Boolean value that indicates whether the process originated as an iOS app and runs on macOS.

Declaration

var isMacCatalystApp: Bool { get }

Discussion

The value of this property is true when the process is:

  • A Mac app built with Mac Catalyst, or an iOS app running on Apple silicon.

  • Running on a Mac.

Frameworks that support iOS and macOS use this property to determine if the process is a Mac app built with Mac Catalyst. To conditionally compile source code intended to run only in macOS, use #if targetEnvironment(macCatalyst) (or #if TARGET_OS_MACCATALYST in Objective-C) instead.

See Also

Accessing Process Information