---
title: NSBundleResourceRequest.LowDiskSpaceMessage
framework: foundation
role: symbol
role_heading: Structure
path: foundation/nsbundleresourcerequest/lowdiskspacemessage
---

# NSBundleResourceRequest.LowDiskSpaceMessage

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

## Declaration

```swift
struct LowDiskSpaceMessage
```

## Overview

Overview After receiving this notification, your app should release any on-demand resources that aren’t required. Call 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, or specify its type directly to the addObserver(of:for:using:) method. The Subject of this message type is NSBundleResourceRequest. This message interoperates with the notification NSBundleResourceRequestLowDiskSpace. The system notifies observers of the message when the NotificationCenter posts the notification. Similarly, the system notifies observers of the notification when it posts the message.

## Topics

### Creating a message

- [init()](foundation/nsbundleresourcerequest/lowdiskspacemessage/init().md)

## Relationships

### Conforms To

- [NotificationCenter.AsyncMessage](foundation/notificationcenter/asyncmessage.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
