Skip to content

fix: avoid SyncUpForm preview crash on interaction#3902

Open
Seungwan98 wants to merge 1 commit intopointfreeco:mainfrom
Seungwan98:fix/syncupform-preview-crash-clean
Open

fix: avoid SyncUpForm preview crash on interaction#3902
Seungwan98 wants to merge 1 commit intopointfreeco:mainfrom
Seungwan98:fix/syncupform-preview-crash-clean

Conversation

@Seungwan98
Copy link
Copy Markdown

@Seungwan98 Seungwan98 commented Mar 26, 2026

Fixes #3823.

Summary

  • keep SyncUpFormView unchanged for production usage
  • extract shared form content into SyncUpFormContents
  • make #Preview use SyncUpFormPreviewView, which intentionally omits .bind($store.focus, to: $focus)

This is a preview-only mitigation for the crash reported in #3823. The issue report notes that interacting with the SyncUpForm preview crashes, and that removing .bind(...) prevents the crash. This change keeps the production code path intact while making the preview use the same form content without the crashing focus-binding path.

Validation

  • lsp_diagnostics Examples/SyncUps/SyncUps/SyncUpForm.swift → no diagnostics
  • xcodebuild -workspace ComposableArchitecture.xcworkspace -scheme ComposableArchitecture -destination 'platform=macOS' CODE_SIGNING_ALLOWED=NO build → succeeds
  • xcodebuild -workspace ComposableArchitecture.xcworkspace -scheme SyncUps -showdestinations
    • this machine does not have the required iOS 26.4 platform/runtime installed, so the SyncUps scheme itself could not be built here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SyncUpForm's Preview is not working upon interaction

1 participant