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

# PHProjectTextElement

An element that represents text within project section content.

```
class PHProjectTextElement
```

## Topics

### Describing a Text Element

[`var text: String`](/documentation/PhotosUI/PHProjectTextElement/text)

The raw unformatted string for the text element.

[`var attributedText: NSAttributedString?`](/documentation/PhotosUI/PHProjectTextElement/attributedText)

The stylized attributed string for the text element as presented to the user in Photos.

[`var textElementType: PHProjectTextElement.ElementType`](/documentation/PhotosUI/PHProjectTextElement/textElementType)

The enumerated type of the text element.

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

An enumeration of the type of text element.

## Relationships

### Inherits From

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

### Conforms To

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

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

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

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

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

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

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

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

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

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

---

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)