<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreFoundation",
  "identifier" : "/documentation/CoreFoundation/CFBoolean",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Core Foundation"
    ],
    "preciseIdentifier" : "c:@T@CFBooleanRef"
  },
  "title" : "CFBoolean"
}
-->

# CFBoolean

```
class CFBoolean
```

## Overview

CFBoolean objects are used to wrap boolean values for use in Core Foundation property lists and collection types.

## Topics

### CFBoolean Miscellaneous Functions

[`CFBooleanGetTypeID()`](/documentation/CoreFoundation/CFBooleanGetTypeID())

Returns the Core Foundation type identifier for the CFBoolean opaque type.

[`CFBooleanGetValue(_:)`](/documentation/CoreFoundation/CFBooleanGetValue(_:))

Returns the value of a CFBoolean object as a standard C type `Boolean`.

### Constants

[Boolean Values](/documentation/CoreFoundation/boolean-values)

CFBoolean evaluates to either true or false values where `kCFBooleanTrue` is the true, and `kCFBooleanFalse` is the false value.

## See Also

  [Property List Programming Topics for Core Foundation](https://developer.apple.com/library/archive/documentation/CoreFoundation/Conceptual/CFPropertyLists/CFPropertyLists.html#//apple_ref/doc/uid/10000130i)



---

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)