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

# weight

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

```
var weight: Double { get }
```

## Discussion

Values range from `0.0` to `1.0` where a higher number represents higher overall significance within the project section. The default value is `0.5`.

Projects that allow a user to reduce the number of elements in a section can use this hint to determine which elements are most important to preserving context.

---

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)