fix(swift-ios): enable granular text selection #6110
Mergedsaphid(GitHub profile, opens in a new tab)merged 3 commits into
t3code/rebuild-mobile-app-swift fromrefs/pull/6110/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XL
- @@ -191,14 +210,20 @@191210 }192211 }193212194213 private struct MarkdownBlocksView: View {195214 let blocks: [MarkdownRenderedBlock]215+ let selectionContext: MarkdownSelectionContext196216 var spacing: CGFloat = 12217+ var textColor: MarkdownTextColor = .primary197218198219 var body: some View {199220 VStack(alignment: .leading, spacing: spacing) {200221 ForEach(blocks.indices, id: \.self) { index in201222 // Unchanged blocks share inline runs by reference across202223 // streaming revisions, so equatable comparison skips their203224 // body and layout entirely; only the changed tail re-renders.204- MarkdownBlockView(block: blocks[index])225+ MarkdownBlockView(226+ block: blocks[index],227+ selectionContext: selectionContext,228+ textColor: textColor229+ )
t3-code-bot[bot](GitHub profile, opens in a new tab) requested changes
@@ -192,14 +211,20 @@192211 }193212194213 private struct MarkdownBlocksView: View {195214 let blocks: [MarkdownRenderedBlock]215+ let selectionContext: MarkdownSelectionContext196216 var spacing: CGFloat = 12217+ var textColor: MarkdownTextColor = .primary197218198219 var body: some View {199220 VStack(alignment: .leading, spacing: spacing) {200221 ForEach(blocks.indices, id: \.self) { index in201222 // Unchanged blocks share inline runs by reference across202223 // streaming revisions, so equatable comparison skips their203224 // body and layout entirely; only the changed tail re-renders.204- MarkdownBlockView(block: blocks[index])225+ MarkdownBlockView(226+ block: blocks[index],227+ selectionContext: selectionContext,228+ textColor: textColor229+ )205230 .equatable()t3-code-bot[bot](GitHub profile, opens in a new tab) approved these changes
t3dotgg(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.


Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID:
23359412-8d23-42e6-b18b-d793f74c16fbYou can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share