<!--
{
  "availability" : [
    "iOS: 13.4.0 -",
    "iPadOS: 13.4.0 -",
    "macCatalyst: 13.4.0 -",
    "macOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ClassKit",
  "identifier" : "/documentation/ClassKit/CLSContext/customTypeName",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "ClassKit"
    ],
    "preciseIdentifier" : "c:objc(cs)CLSContext(py)customTypeName"
  },
  "title" : "customTypeName"
}
-->

# customTypeName

An optional name that the system presents to the user if you choose the custom context type.

```
var customTypeName: String? { get set }
```

## Discussion

The system ignores the value of this property unless you set the context’s [`type`](/documentation/ClassKit/CLSContext/type) property to [`CLSContextType.custom`](/documentation/ClassKit/CLSContextType/custom).

If you set the type name, provide a localized value. If you use a custom context type but don’t set the type name, the system presents a default, localized string instead.

---

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)