A message the system sends when the system time zone changes.
Observe this message with the identifier ``NotificationCenter/MessageIdentifier/systemTimeZoneDidChange``, or specify its type directly to the `addObserver(of:for:using:)` method.
The ``NotificationCenter/MainActorMessage/Subject`` of this message type is ``TimeZone``.
This message interoperates with the notification ``NSNotification/Name/NSSystemTimeZoneDidChange``.
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.
Converts a posted notification into this main actor message type for any observers.
To implement this method in your own `MainActorMessage` conformance, retrieve values from the ``Notification``'s ``Notification/userInfo`` and set them as properties on the message.
- Parameter notification: The posted ``Notification``.
- Returns: The converted `MainActorMessage` or `nil` if conversion is not possible.
get · iOS 26.0+
previousTimeZone
TypeScript
get previousTimeZone(): (TimeZone) | null
Swift declaration
var previousTimeZone: TimeZone?
The previous system time zone, prior to the change.
set · iOS 26.0+
previousTimeZone
TypeScript
set previousTimeZone(value: (TimeZone) | null)
Swift declaration
var previousTimeZone: TimeZone?
The previous system time zone, prior to the change.