← Back to all updates

Enhanced Text Selection and Spacing in AI Chat Panel

Commit: 4638e00

Introduced full text selection and adjustable block spacing for improved chat interactions.

Changes

  • Replaced per-line VStack and ForEach rendering with single Text(attributedString) per message for cross-paragraph selection.
  • Connected line height settings to .lineSpacing() modifier for consistent text spacing.
  • Utilized font-sized spacer newlines to implement variable inter-block spacing in the chat panel.
  • Documented architectural decisions and lessons learned in CLAUDE.md for future reference.