<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 12.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVAssetWasDefragmentedNotification",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:@AVAssetWasDefragmentedNotification"
  },
  "title" : "AVAssetWasDefragmentedNotification"
}
-->

# AVAssetWasDefragmentedNotification

A notification the system posts when a fragmented asset minder observes that the system defragments the asset on disk.

```
extern NSString * const AVAssetWasDefragmentedNotification;
```

## Discussion

The system posts this notification only for changes that occur after an asset’s [`canContainFragments`](/documentation/AVFoundation/AVAsset/canContainFragments) property reaches a [`AVKeyValueStatus.loaded`](/documentation/AVFoundation/AVKeyValueStatus/loaded) status.

After the system posts this notification, the value of the asset’s [`canContainFragments`](/documentation/AVFoundation/AVAsset/canContainFragments) and [`containsFragments`](/documentation/AVFoundation/AVAsset/containsFragments) properties is <doc://com.apple.documentation/documentation/Swift/false>.

---

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)