orientationDidChangeNotification
A notification that posts when the orientation of the device changes.
Declaration
nonisolated class let orientationDidChangeNotification: NSNotification.NameMentioned in
Discussion
You can obtain the new orientation by getting the value of the orientation property.