Skip to content

fix(ios): remove segmented control background and fix reconnect lifecycle#681

Merged
datlechin merged 1 commit intomainfrom
refactor/ios-tabview-root
Apr 11, 2026
Merged

fix(ios): remove segmented control background and fix reconnect lifecycle#681
datlechin merged 1 commit intomainfrom
refactor/ios-tabview-root

Conversation

@datlechin
Copy link
Copy Markdown
Collaborator

Summary

  • Remove .background(.bar) from segmented tab picker for cleaner look
  • Fix infinite connecting loop when navigating back to same connection
  • Add .onAppear reconnect when driver session is lost after background

Changes

  • ConnectedView.swift: Remove bar background from segmented picker. Add guard session == nil early return in connect() to prevent re-triggering on reuse. Add .onAppear handler to detect dead sessions and reconnect.

Test plan

  • Segmented control has transparent background
  • Connect to database, navigate back, connect again → no infinite loop
  • App goes to background, comes back → reconnects if session lost
  • Error state shows correctly on failed connection

…ycle

- Remove .background(.bar) from segmented tab picker for cleaner look
- Fix infinite connecting loop when navigating back to same connection
- Add .onAppear reconnect when driver session is lost
- Guard against session reuse resetting isConnecting state
@datlechin datlechin merged commit 6c03d76 into main Apr 11, 2026
2 checks passed
@datlechin datlechin deleted the refactor/ios-tabview-root branch April 11, 2026 13:49
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.

1 participant