AutoGenerateTableViewDelegate.stencil 1.4 KB

123456789101112131415161718192021222324252627282930
  1. {% for type in types.implementing.AutoGenerateTableViewDelegate %}
  2. // sourcery:inline:{{type.name}}.AutoGenerateTableViewDelegate
  3. // Generated using Sourcery
  4. // DO NOT EDIT
  5. func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
  6. aspectTableView(tableView, didSelectRowAt: indexPath)
  7. }
  8. {% if type.based.MediaPreviewableViewController %}
  9. func tableView(_ tableView: UITableView, contextMenuConfigurationForRowAt indexPath: IndexPath, point: CGPoint) -> UIContextMenuConfiguration? {
  10. return aspectTableView(tableView, contextMenuConfigurationForRowAt: indexPath, point: point)
  11. }
  12. func tableView(_ tableView: UITableView, previewForHighlightingContextMenuWithConfiguration configuration: UIContextMenuConfiguration) -> UITargetedPreview? {
  13. return aspectTableView(tableView, previewForHighlightingContextMenuWithConfiguration: configuration)
  14. }
  15. func tableView(_ tableView: UITableView, previewForDismissingContextMenuWithConfiguration configuration: UIContextMenuConfiguration) -> UITargetedPreview? {
  16. return aspectTableView(tableView, previewForDismissingContextMenuWithConfiguration: configuration)
  17. }
  18. func tableView(_ tableView: UITableView, willPerformPreviewActionForMenuWith configuration: UIContextMenuConfiguration, animator: UIContextMenuInteractionCommitAnimating) {
  19. aspectTableView(tableView, willPerformPreviewActionForMenuWith: configuration, animator: animator)
  20. }
  21. {% endif %}
  22. // sourcery:end
  23. {% endfor %}