Skip to content
This repository has been archived by the owner on Jan 6, 2024. It is now read-only.

Added completion delegate function #8

Merged
merged 1 commit into from
Dec 20, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,9 @@ class GBHFacebookAlbumPicker: UITableViewController, GBHAlbumPickerTableViewCont

func dismissPicker() {
DispatchQueue.main.async {
self.dismiss(animated: true, completion: nil)
self.dismiss(animated: true, completion: {
self.delegate?.facebookImagePickerDismissed()
})
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,7 @@ public protocol GBHFacebookImagePickerDelegate {
///
/// - Parameter imagePicker: the picker controller
func facebookImagePicker(didCancelled imagePicker: UIViewController)

/// Called when image picker completed dismissing
func facebookImagePickerDismissed()
}