Skip to content

fix: prevent reader background snapshot environment crash#571

Merged
everpcpc merged 1 commit intomainfrom
codex/fix-overlay-environment-crash
Feb 26, 2026
Merged

fix: prevent reader background snapshot environment crash#571
everpcpc merged 1 commit intomainfrom
codex/fix-overlay-environment-crash

Conversation

@everpcpc
Copy link
Copy Markdown
Owner

Summary

  • remove the iOS window-based notification overlay and use in-tree SwiftUI overlays to avoid environment object assertion failures during scene snapshot/layout transitions
  • localize reader status bar visibility and dismiss-gesture direction to each reader view (Divina/EPUB/PDF)
  • remove global ReaderPresentationManager UI state coupling for hideStatusBar and readingDirection

Testing

  • make build

Replace iOS notification window hosting with in-tree overlays to avoid missing SwiftUI object environment during snapshot/layout transitions.

Localize reader status bar and dismiss-gesture direction handling to each reader view, and remove global readerPresentation hideStatusBar/readingDirection state coupling.

This reduces crash surface during app background snapshot and simplifies reader UI state ownership.
@everpcpc everpcpc merged commit 5bef587 into main Feb 26, 2026
3 checks passed
@everpcpc everpcpc deleted the codex/fix-overlay-environment-crash branch February 26, 2026 13:37
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