<!--
{
  "availability" : [
    "macOS: 10.13.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PhotoKit",
  "identifier" : "/documentation/PhotosUI/PHProjectElement",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "PhotosUI"
    ],
    "preciseIdentifier" : "c:objc(cs)PHProjectElement"
  },
  "title" : "PHProjectElement"
}
-->

# PHProjectElement

The superclass for all element objects.

```
class PHProjectElement
```

## Overview

You should never use this class directly; opt instead for one of its subclasses. It defines the shared properties of any element in an instance of [`PHProjectSectionContent`](/documentation/PhotosUI/PHProjectSectionContent).

## Topics

### Subclassing Project Elements

[`class PHProjectAssetElement`](/documentation/PhotosUI/PHProjectAssetElement)

An element that represents a media asset within project section content.

[`class PHProjectTextElement`](/documentation/PhotosUI/PHProjectTextElement)

An element that represents text within project section content.

[`class PHProjectJournalEntryElement`](/documentation/PhotosUI/PHProjectJournalEntryElement)

An element that represents a journal entry within project section content.

[`class PHProjectMapElement`](/documentation/PhotosUI/PHProjectMapElement)

An element that represents a map within project section content.

### Describing Project Elements

[`var weight: Double`](/documentation/PhotosUI/PHProjectElement/weight)

A value between 0 and 1 representing relative significance of the element in its section.

[`var placement: CGRect`](/documentation/PhotosUI/PHProjectElement/placement)

A rectangle defining where an element is placed in grid space coordinates.

### Initializers

[`init?(coder: NSCoder)`](/documentation/PhotosUI/PHProjectElement/init(coder:))

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CVarArg`](/documentation/Swift/CVarArg)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`Sendable`](/documentation/Swift/Sendable)

[`Hashable`](/documentation/Swift/Hashable)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

### Inherited By

[`PHProjectAssetElement`](/documentation/PhotosUI/PHProjectAssetElement)

[`PHProjectJournalEntryElement`](/documentation/PhotosUI/PHProjectJournalEntryElement)

[`PHProjectTextElement`](/documentation/PhotosUI/PHProjectTextElement)

[`PHProjectMapElement`](/documentation/PhotosUI/PHProjectMapElement)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)