Contents

operatingSystem()

Returns a constant to indicate the operating system on which the process is executing.

Declaration

func operatingSystem() -> Int

Return Value

Operating system identifier. See Constants for a list of possible values. In macOS, it’s NSMACHOperatingSystem.

See Also

Getting Host Information