From 84c042b00522502841410eba06d55012dfdcdada Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sat, 7 Mar 2026 16:27:23 -0800 Subject: [PATCH] Add .lowMemory notification. --- Modules/RSCore/Sources/RSCore/Notifications.swift | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Modules/RSCore/Sources/RSCore/Notifications.swift diff --git a/Modules/RSCore/Sources/RSCore/Notifications.swift b/Modules/RSCore/Sources/RSCore/Notifications.swift new file mode 100644 index 000000000..284be7b69 --- /dev/null +++ b/Modules/RSCore/Sources/RSCore/Notifications.swift @@ -0,0 +1,14 @@ +// +// Notifications.swift +// RSCore +// +// Created by Brent Simmons on 3/7/26. +// + +import Foundation + +public extension Notification.Name { + /// Posted when the app should free memory — on background transition + /// and potentially on memory warnings. Always posted on the main thread. + static let lowMemory = Notification.Name("LowMemoryNotification") +}