Skip to content

Conversation

@graycreate
Copy link
Member

Summary

  • Replace sheet-based presentation with NavigationLink for the "使用浏览器打开" button
  • Fix iOS 26 WKWebView blank screen bug by avoiding sheet/fullScreenCover
  • Respect user's builtin browser preference setting

Changes

  • Use NavigationLink instead of .sheet for InAppBrowserView and SafariView
  • Add useBuiltinBrowser computed property to check user preference
  • Remove unused showingSafari/showingMobileWeb state variables

Test plan

  • Open a topic detail page
  • Tap the "更多" menu button (top right)
  • Tap "使用浏览器打开"
  • Verify InAppBrowser opens (if builtin browser enabled) or SafariView opens (if disabled)
  • Verify no blank screen appears
  • Verify back navigation works correctly

🤖 Generated with Claude Code

Replace sheet-based presentation with NavigationLink for the "使用浏览器打开"
button to work around iOS 26 WKWebView blank screen bug.

Changes:
- Use NavigationLink instead of sheet for InAppBrowser and SafariView
- Respect user's builtin browser preference setting
- Remove unused showingSafari/showingMobileWeb state variables

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings December 28, 2025 15:02
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a WKWebView blank screen bug by replacing sheet-based presentation with NavigationLink for browser views in the FeedDetailPage. The changes respect user's builtin browser preference and upgrade from the simpler MobileWebView to the more feature-rich InAppBrowserView.

Key changes:

  • Replace .sheet modifiers with hidden NavigationLink components for InAppBrowserView and SafariView
  • Add useBuiltinBrowser computed property to check user's browser preference from settings
  • Remove unused showingSafari, safariURL, showingMobileWeb, and mobileWebURL state variables

@github-actions
Copy link

Code Coverage Report ❌

Current coverage: 30.85%

@graycreate graycreate merged commit d8b124b into main Dec 29, 2025
11 of 12 checks passed
@graycreate graycreate deleted the bugfix/feed-detail-browser-navigation branch December 29, 2025 00:12
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