---
title: EntityOwnership
framework: appintents
role: symbol
role_heading: Structure
path: appintents/entityownership
---

# EntityOwnership

A type that represents the ownership and sharing characteristics of an app entity.

## Declaration

```swift
struct EntityOwnership
```

## Overview

Overview The EntityOwnership structure provides flag-based ownership information. Specify a single state, or combine multiple states using an OptionSet, as shown in the following example: // Single ownership and sharing state: var ownership: EntityOwnership { .shared }

// or

// Combined ownership and sharing states: var ownership: EntityOwnership { [.shared, .public] }

## Topics

### Scoping entity ownership and sharing

- [public](appintents/entityownership/public.md)
- [shared](appintents/entityownership/shared.md)
- [unknown](appintents/entityownership/unknown.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)
