feat(mobile): long-press file references for path and open actions #9258
Merged
juliusmarmingemerged 4 commits into
main fromrefs/pull/9258/head·merged by juliusmarminge View on GitHubShowing 17 changed files with 165 additions and 11 deletions (loading 14).
x
92 additions and 9 deletions+92-9apps/mobile/modules/t3-markdown-text/ios/T3MarkdownText.mmModified4 lines can hide codeView file
@@ -198,6 +198,8 @@
+ UILongPressGestureRecognizer *_longPressGestureRecognizer;
+ UITapGestureRecognizer *_pressGestureRecognizer;
@@ -223,21 +225,24 @@
+ // Chat text supports selection and contextual actions, but not drag-and-drop.
+ _textView.textDragInteraction.enabled = NO;
+ _textView.linkTextAttributes = @{};
- const auto longPressGestureRecognizer = [[UILongPressGestureRecognizer alloc] initWithTarget:self
Code far to the right: this line has a long run of spaces or tabs before more code. Scroll right to read it.231
- action:@selector(handleLongPressIfNecessary:)];- longPressGestureRecognizer.delegate = self;
+ _longPressGestureRecognizer = [[UILongPressGestureRecognizer alloc] initWithTarget:self
Code far to the right: this line has a long run of spaces or tabs before more code. Scroll right to read it.236
+ action:@selector(handleLongPressIfNecessary:)];+ _longPressGestureRecognizer.delegate = self;
- const auto pressGestureRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self
Code far to the right: this line has a long run of spaces or tabs before more code. Scroll right to read it.235
- action:@selector(handlePressIfNecessary:)];