Closed cedixon closed 5 years ago
Hi!
For modal - pass modal controller, which presenting as SPStork. For parent - pass parent controller, on which controller present pass.
If you try update in SPStork controller, I think you need call
SPStorkController.updatePresentingController(modal: self)
Pass self
because self is modal controller.
I'm trying to update UILabel on presenting ViewController when the user taps a button in a modally presented VC. Here's the code I'm using to present the modal:
I'm assuming that I need to call
SPStorkController.updatePresentingController(modal:)
orSPStorkController.updatePresentingController(parent:)
, but where should this be run from?In the modal VC, I've tried:
and in the presenting VC delegate method I've tried:
But neither result in the presenting VC's snapshot being updated. I'm thinking I must be calling
updatePresentingController
incorrectly? Where should I call it from?