<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PhotoKit",
  "identifier" : "/documentation/Photos/PHCollection/canContainAssets",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Photos"
    ],
    "preciseIdentifier" : "c:objc(cs)PHCollection(py)canContainAssets"
  },
  "title" : "canContainAssets"
}
-->

# canContainAssets

A Boolean value indicating whether the collection can contain assets.

```
var canContainAssets: Bool { get }
```

## Discussion

If this value is `true`, the collection is a [`PHAssetCollection`](/documentation/Photos/PHAssetCollection) object; otherwise, `false`. For details on asset collections, see [`PHAssetCollection`](/documentation/Photos/PHAssetCollection).

---

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)