quangnghiadev / take-notes

0 stars 0 forks source link

Detect when presentingViewController dismiss #9

Open stuartmfv opened 2 years ago

stuartmfv commented 2 years ago

UIAdaptivePresentationControllerDelegate

// Called on the delegate when the user has taken action to dismiss the presentation successfully, after all animations are finished.
// This is not called if the presentation is dismissed programatically.
@available(iOS 13.0, *)
optional func presentationControllerDidDismiss(_ presentationController: UIPresentationController)

presentingViewController.presentationController?.delegate = presenter