Contents

EntityOwnership

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

Declaration

struct EntityOwnership

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