activityDidFinish(_:)
Notifies the system that your activity object has completed its work.
Declaration
func activityDidFinish(_ completed: Bool)Parameters
Discussion
This method dismisses the sharing interface provided by the UIActivityViewController object. If you provided a view controller using the activityViewController method, this method dismisses that view controller too.
You must call this method after completing the work associated with this object’s service. This is true regardless of whether you used the activityViewController or perform() method to initiate the service. When calling the method, use the Boolean value to indicate whether the service completed successfully.
This method must be called on the main thread.