<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "ObjectiveC",
  "identifier" : "/documentation/ObjectiveC/YES",
  "metadataVersion" : "0.1.0",
  "role" : "Macro",
  "symbol" : {
    "kind" : "Macro",
    "modules" : [
      "Objective-C Runtime"
    ],
    "preciseIdentifier" : "c:@macro@YES"
  },
  "title" : "YES"
}
-->

# YES

Defines `YES` as `1`.

```
#define YES
```

## Discussion

The `YES` macro from Objective-C is bridged to Swift as an [`ObjCBool`](/documentation/ObjectiveC/ObjCBool) value of `true`.

---

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)