Enable copy in "Server network" screen
This commit is contained in:
parent
7b87f4247c
commit
cdb79c585b
|
@ -276,4 +276,17 @@ extension ServerNetworkViewController {
|
||||||
|
|
||||||
return cell
|
return cell
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override func tableView(_ tableView: UITableView, shouldShowMenuForRowAt indexPath: IndexPath) -> Bool {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
override func tableView(_ tableView: UITableView, canPerformAction action: Selector, forRowAt indexPath: IndexPath, withSender sender: Any?) -> Bool {
|
||||||
|
return action == #selector(UIResponderStandardEditActions.copy(_:))
|
||||||
|
}
|
||||||
|
|
||||||
|
override func tableView(_ tableView: UITableView, performAction action: Selector, forRowAt indexPath: IndexPath, withSender sender: Any?) {
|
||||||
|
let cell = tableView.cellForRow(at: indexPath)
|
||||||
|
UIPasteboard.general.string = cell?.detailTextLabel?.text
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue