<!--
{
  "availability" : [
    "iOS: 17.4.0 -",
    "iPadOS: 17.4.0 -",
    "macCatalyst: 17.4.0 -",
    "macOS: 14.4.0 -",
    "tvOS: 17.4.0 -",
    "visionOS: 1.1.0 -",
    "watchOS: 10.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "LightweightCodeRequirements",
  "identifier" : "/documentation/LightweightCodeRequirements/PlatformType/Value",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "LightweightCodeRequirements"
    ],
    "preciseIdentifier" : "s:27LightweightCodeRequirements12PlatformTypeV5ValueV"
  },
  "title" : "PlatformType.Value"
}
-->

# PlatformType.Value

Supported Platform Types for a process

```
struct Value
```

## Overview

A platform type is an indication of the runtime enviroment of a process.
These runtime enviroments indicate the types of code that can run in the process, the dyld shared cache in use and impact some security policies.

## Topics

### Initializers

[`init?(rawValue: Int64)`](/documentation/LightweightCodeRequirements/PlatformType/Value/init(rawValue:))

Creates a new instance with the specified raw value.

### Instance Properties

[`let rawValue: Int64`](/documentation/LightweightCodeRequirements/PlatformType/Value/rawValue)

The corresponding value of the raw type.

### Type Properties

[`static let driverKit: PlatformType.Value`](/documentation/LightweightCodeRequirements/PlatformType/Value/driverKit)

The platform type for a driverkit driver.

[`static let iOS: PlatformType.Value`](/documentation/LightweightCodeRequirements/PlatformType/Value/iOS)

The platform type for iOS/iPadOS software running on iOS/ipadOS/macOS/visionOS

[`static let iOSSimulator: PlatformType.Value`](/documentation/LightweightCodeRequirements/PlatformType/Value/iOSSimulator)

The platform type for code running in the iOS Simulator.

[`static let macCatalyst: PlatformType.Value`](/documentation/LightweightCodeRequirements/PlatformType/Value/macCatalyst)

The platform type for macCatalyst software.

[`static let macOS: PlatformType.Value`](/documentation/LightweightCodeRequirements/PlatformType/Value/macOS)

The platform type for non-macCatalyst macOS software.

[`static let tvOS: PlatformType.Value`](/documentation/LightweightCodeRequirements/PlatformType/Value/tvOS)

The platform type for native tvOS software.

[`static let tvOSSimulator: PlatformType.Value`](/documentation/LightweightCodeRequirements/PlatformType/Value/tvOSSimulator)

The platform type for code running in the tvOS Simulator.

[`static let visionOS: PlatformType.Value`](/documentation/LightweightCodeRequirements/PlatformType/Value/visionOS)

The platform type for native visionOS code.

[`static let visionOSSimulator: PlatformType.Value`](/documentation/LightweightCodeRequirements/PlatformType/Value/visionOSSimulator)

The platform type for code running in the visionOS Simulator.

[`static let watchOS: PlatformType.Value`](/documentation/LightweightCodeRequirements/PlatformType/Value/watchOS)

The platform type for native watchOS software.

[`static let watchOSSimulator: PlatformType.Value`](/documentation/LightweightCodeRequirements/PlatformType/Value/watchOSSimulator)

The platform type for code running in the watchOS Simulator.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`Copyable`](/documentation/Swift/Copyable)

[`Escapable`](/documentation/Swift/Escapable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Encodable`](/documentation/Swift/Encodable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Decodable`](/documentation/Swift/Decodable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)