mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Make share extension container picker update the main ui
This commit is contained in:
@@ -10,7 +10,7 @@ import UIKit
|
||||
import Account
|
||||
|
||||
protocol ShareFolderPickerControllerDelegate: class {
|
||||
func shareFolderPickerDidSelect(_ container: Container)
|
||||
func shareFolderPickerDidSelect(_ container: Container, _ selectionName: String)
|
||||
}
|
||||
|
||||
class ShareFolderPickerController: UITableViewController {
|
||||
@@ -45,8 +45,7 @@ class ShareFolderPickerController: UITableViewController {
|
||||
|
||||
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
|
||||
guard let pickerData = pickerData else { return }
|
||||
delegate?.shareFolderPickerDidSelect(pickerData.containers[indexPath.row])
|
||||
navigationController?.popViewController(animated: true)
|
||||
delegate?.shareFolderPickerDidSelect(pickerData.containers[indexPath.row], pickerData.containerNames[indexPath.row])
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user