---
title: SecCode
framework: security
role: symbol
role_heading: Class
path: security/seccode
---

# SecCode

A code object representing signed code running on the system.

## Declaration

```swift
class SecCode
```

## Mentioned in

Hosting Guest Code

## Overview

Overview In many function calls, a value of type SecCode can be passed to a parameter that is typed as a SecStaticCode. In these cases, the function performs an implicit call to the SecCodeCopyStaticCode(_:_:_:) function and operates on the result.

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
