Skip to content

Conversation

@stevenzeck
Copy link
Contributor

@stevenzeck stevenzeck commented Nov 14, 2025

This PR redoes the OPDS feed screens to use SwiftUI and removes their old UIKit counterparts.

@stevenzeck stevenzeck marked this pull request as ready for review November 15, 2025 02:24
Comment on lines +24 to +27
id = publication.links.first(where: { $0.rels.contains(.self) })?.href
?? publication.metadata.identifier
?? publication.metadata.title
?? UUID().uuidString
Copy link
Member

Choose a reason for hiding this comment

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

This is somewhat fragile because you could have multiple publications with the same identifier (unlikely) or title (likely). This means we must later use the .unique() trick, which should not be necessary.

Instead, I would use the index of the publication in the feed list for ID, as it should not change during the rendition of the feed. Maybe prefixed with the feed URL (and the index of a group if needed?, so that it would look like 1.4).

What do you think?

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