Skip to content

Add the text selection modifier #1210

Closed

Description

@Kyle-Ye

Summary

Add View.textSelection(_:) using the existing TextSelectability protocol and
text selection graph inputs.

Scope

  • Add the public nonisolated modifier with the matching platform availability.
  • Propagate the selectability type's allowsSelection value and install the
    platform text selection provider.
  • Declare explicit UIKit and AppKit provider stubs. Interactive selection is
    outside this change's scope.

Acceptance criteria

  • .enabled, .disabled, and custom TextSelectability values are accepted.
  • The modifier updates selection inputs without storing the selectability value
    or changing TextSelectionForbidden.
  • Provider stubs and their runtime limitation are documented explicitly.

Activity

  1. added this to the 0.25.0 milestone on Oct 24, 2026
  2. added
    area: textText, labels, line style, and text rendering APIs.
    area: viewView APIs, modifiers, AnyView, ForEach, DynamicView, and related behavior.
    type: featureNew API, behavior, platform support, or user-facing capability.
    on Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: textText, labels, line style, and text rendering APIs.area: viewView APIs, modifiers, AnyView, ForEach, DynamicView, and related behavior.type: featureNew API, behavior, platform support, or user-facing capability.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions