---
title: "setType(_:)"
framework: classkit
role: symbol
role_heading: Instance Method
path: "classkit/clscontext/settype(_:)"
---

# setType(_:)

Updates the kind of content that a context represents.

## Declaration

```swift
func setType(_ type: CLSContextType)
```

## Parameters

- `type`: A new value for the kind of content that the context represents.

## Discussion

Discussion Use this method to change the type property of a context that you’ve already created.

## See Also

### Managing the context type

- [type](classkit/clscontext/type.md)
- [CLSContextType](classkit/clscontexttype.md)
- [customTypeName](classkit/clscontext/customtypename.md)
