Skip to content

Expose the reading order rendered by the navigator - #901

Merged
mickael-menu merged 1 commit into
developfrom
feature/navigator-readingOrder
Sep 16, 2026
Merged

mickael-menu merged 1 commit into
developfrom
feature/navigator-readingOrder

Conversation

@mickael-menu

Copy link
Copy Markdown
Member

Added

Navigator

  • New Navigator.readingOrder property returning the reading order actually rendered by the navigator, which may differ from publication.readingOrder when a custom reading order or a resource variant is used.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The implementations accurately expose each navigator’s rendered reading order with a focused, consistent refactor.

Pull request overview

Exposes each navigator’s effective reading order, including EPUB custom orders and selected resource variants.

Changes:

  • Adds Navigator.readingOrder.
  • Implements it for EPUB, PDF, and audiobook navigators.
  • Documents the new API in the changelog.
File summaries
File Description
Sources/Navigator/Navigator.swift Defines the new protocol property.
Sources/Navigator/EPUB/EPUBNavigatorViewController.swift Exposes and consistently uses rendered EPUB links.
Sources/Navigator/PDF/PDFNavigatorViewController.swift Returns the publication’s PDF reading order.
Sources/Navigator/Audiobook/AudioNavigator.swift Returns the publication’s audio reading order.
CHANGELOG.md Records the new navigator API.
Review details
  • Files reviewed: 5/5 changed files
  • Comments generated: 0
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@mickael-menu
mickael-menu merged commit 55d2a55 into develop Sep 16, 2026
6 checks passed
@mickael-menu
mickael-menu deleted the feature/navigator-readingOrder branch September 16, 2026 13:42
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.

2 participants