<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.10.0 -",
    "swift: -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/CustomPlaygroundQuickLookable",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:s29CustomPlaygroundQuickLookablea"
  },
  "title" : "CustomPlaygroundQuickLookable"
}
-->

# CustomPlaygroundQuickLookable

A type that explicitly supplies its own playground Quick Look.

```
typealias CustomPlaygroundQuickLookable = _CustomPlaygroundQuickLookable
```

## Discussion

The `CustomPlaygroundQuickLookable` protocol is deprecated, and will be
removed from the standard library in a future Swift release. To customize
the logging of your type in a playground, conform to the
`CustomPlaygroundDisplayConvertible` protocol.

If you need to provide a customized playground representation in Swift 4.0
or Swift 3.2 or earlier, use a conditional compilation block:

```
#if swift(>=4.1) || (swift(>=3.3) && !swift(>=4.0))
    // With Swift 4.1 and later (including Swift 3.3 and later),
    // conform to CustomPlaygroundDisplayConvertible.
    extension MyType: CustomPlaygroundDisplayConvertible { /*...*/ }
#else
    // Otherwise, on Swift 4.0 and Swift 3.2 and earlier,
    // conform to CustomPlaygroundQuickLookable.
    extension MyType: CustomPlaygroundQuickLookable { /*...*/ }
#endif
```

---

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)