Swipe down does not called completion #69

Closed
opened 2025-10-14 15:58:55 -06:00 by navan · 0 comments
Owner

Originally created by @StefaniOSApps on 12/31/2019

  1. use example code

  2. use completion method like

configuration.completionButton = WhatsNewViewController.CompletionButton(
         title: "Continue",
            action: .custom(action: { (controller) in
               controller.dismiss(animated: true) {
                  completion()
               }
            }
         )
      )
  1. swipe the controller down

--> completion() is not called

How to handle UIAdaptivePresentationControllerDelegate events?

whatsNewViewController.navigationController?.presentationController?.delegate = self
whatsNewViewController.presentationController?.delegate = self

not called...
func presentationControllerDidDismiss(_ presentationController: UIPresentationController)

*Originally created by @StefaniOSApps on 12/31/2019* 1. use example code 2. use completion method like ``` configuration.completionButton = WhatsNewViewController.CompletionButton( title: "Continue", action: .custom(action: { (controller) in controller.dismiss(animated: true) { completion() } } ) ) ``` 3. swipe the controller down --> completion() is not called How to handle `UIAdaptivePresentationControllerDelegate` events? ``` whatsNewViewController.navigationController?.presentationController?.delegate = self whatsNewViewController.presentationController?.delegate = self ``` not called... `func presentationControllerDidDismiss(_ presentationController: UIPresentationController)`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github/WhatsNewKit#69
No description provided.