Say you want to do something once user finish. What do you do?
It doesn't have a delegate. What to do once a present view controller is dismissed?
Say you want to do something once user finish. What do you do?
It doesn't have a delegate. What to do once a present view controller is dismissed?
Copyright © 2021 Jogjafile Inc.
In the Apple documentation you'll find that SLComposeViewController has a completion handler property instead of a delegate. You just need to set that property using the setCompletionHandler method. Then you use the constant SLComposeViewControllerResult to recover whether the post was posted or canceled and take action accordingly.
}