Skip to content

Conversation

@Dimillian
Copy link
Owner

Motivation

  • The toast hit area was effectively limited to the label, making taps on the rest of the toast ignored and resulting in poor UX.
  • The intent is that tapping anywhere on the toast should trigger its action and dismissal.
  • Apply a minimal change to expand the tappable region without altering behavior.

Description

  • Added .contentShape(Rectangle()) to the ToastView instance in Packages/DesignSystem/Sources/DesignSystem/Views/ToastOverlayView.swift to expand the hit area.
  • Preserved the existing .onTapGesture which invokes the toast action.handler() and calls toastCenter.dismiss(id:).
  • No other behavior, layout, or animation changes were made.

Testing

  • No automated tests were run for this change.
  • Builds/tests were not executed in this environment because XcodeBuildMCP was not available.

Codex Task

@Dimillian Dimillian merged commit 5139785 into main Jan 4, 2026
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants