<!--
{
  "availability" : [
    "iOS: 26.0.0 - 27.0.0",
    "iPadOS: 26.0.0 - 27.0.0",
    "macCatalyst: 26.0.0 - 27.0.0",
    "tvOS: 26.0.0 - 27.0.0",
    "visionOS: 26.0.0 - 27.0.0",
    "watchOS: 26.0.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSBundleResourceRequest/LowDiskSpaceMessage",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:So23NSBundleResourceRequestC10FoundationE19LowDiskSpaceMessageV"
  },
  "title" : "NSBundleResourceRequest.LowDiskSpaceMessage"
}
-->

# NSBundleResourceRequest.LowDiskSpaceMessage

A message the system sends when it detects the amount of available disk space getting low.

```
struct LowDiskSpaceMessage
```

## Overview

After receiving this notification, your app should release any on-demand resources that aren’t required.
Call [`endAccessingResources()`](/documentation/Foundation/NSBundleResourceRequest/endAccessingResources()) to release the managed resources.
If the app is in the background and the app doesn’t free up enough space, the system may terminate the app.

Observe this message with the identifier [`lowDiskSpace`](/documentation/Foundation/NotificationCenter/MessageIdentifier/lowDiskSpace), or specify its type directly to the `addObserver(of:for:using:)` method.
The [`Subject`](/documentation/Foundation/NotificationCenter/MainActorMessage/Subject) of this message type is [`NSBundleResourceRequest`](/documentation/Foundation/NSBundleResourceRequest).

This message interoperates with the notification [`NSBundleResourceRequestLowDiskSpace`](/documentation/Foundation/NSNotification/Name-swift.struct/NSBundleResourceRequestLowDiskSpace).
The system notifies observers of the message when the [`NotificationCenter`](/documentation/Foundation/NotificationCenter) posts the notification.
Similarly, the system notifies observers of the notification when it posts the message.

## Topics

### Creating a message

[`init()`](/documentation/Foundation/NSBundleResourceRequest/LowDiskSpaceMessage/init())

Creates a message about the available disk space getting low.

## Relationships

### Conforms To

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

[`AsyncMessage`](/documentation/Foundation/NotificationCenter/AsyncMessage)

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

---

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)