Skip to content

Instantly share code, notes, and snippets.

@pronebird
Created January 19, 2023 11:29
Show Gist options
  • Save pronebird/6ad1f2f3514b1acda12fc4def5045a9e to your computer and use it in GitHub Desktop.
Save pronebird/6ad1f2f3514b1acda12fc4def5045a9e to your computer and use it in GitHub Desktop.
Private notifications posted by UIPresentationController
extension UIPresentationController {
static let presentationTransitionWillBegin = Notification.Name(
"UIPresentationControllerPresentationTransitionWillBeginNotification"
)
static let presentationTransitionDidEndNotification = Notification.Name(
"UIPresentationControllerPresentationTransitionDidEndNotification"
)
static let dismissalTransitionWillBeginNotification = Notification.Name(
"UIPresentationControllerDismissalTransitionWillBeginNotification"
)
static let dismissalTransitionDidEndNotification = Notification.Name(
"UIPresentationControllerDismissalTransitionDidEndNotification"
)
/// Included in `presentationTransitionDidEndNotification` notifications.
static let presentationTransitionDidEndCompletedUserInfoKey =
"UIPresentationControllerPresentationTransitionDidEndCompletedKey"
/// Included in `dismissalTransitionDidEndNotification` notifications.
static let dismissalTransitionDidEndCompletedUserInfoKey =
"UIPresentationControllerDismissalTransitionDidEndCompletedKey"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment