mirror of
https://github.com/narrrl/proton-stream.git
synced 2026-11-03 16:41:26 +01:00
feat(android,ios): read each library tile once, with its long press as an action
A poster's artwork carried the title's name and so did the text under it, so a screen reader said the name twice. The artwork is now left out where the text names it, and a folded franchise tile says how many more it stands for. The long press that opens a tile's menu is offered as an action, labelled on Android and as More on iOS, where tapAndHold also makes the whole tile one button. On iOS the app behind a full-screen player is hidden from VoiceOver, which walked the library behind the picture.
This commit is contained in:
1 parent
01eee78317
commit
bf3fa19c70
4 files changed
+26
-5
No files matched your search
@@ -541,7 +541,9 @@ private struct ContinueCard: View {
|
||||
|
||||
var body: some View {
|
||||
VStack(alignment: .leading, spacing: 0) {
|
||||
// Named by the text under it; read as well, the name came twice.
|
||||
RemoteArtwork(entry.episode.stillUrl ?? entry.title.backdropUrl, entry.title.displayName, fallback: entry.episode.thumbnailSource)
|
||||
.accessibilityHidden(true)
|
||||
.aspectRatio(16 / 9, contentMode: .fit)
|
||||
.overlay(alignment: .bottom) {
|
||||
if let progress = entry.episode.progress { AccentProgress(progress: progress) }
|
||||
@@ -571,6 +573,7 @@ struct PosterTile: View {
|
||||
var body: some View {
|
||||
VStack(alignment: .leading, spacing: 0) {
|
||||
RemoteArtwork(title.posterUrl ?? title.backdropUrl, title.displayName, fallback: title.thumbnailSource)
|
||||
.accessibilityHidden(true)
|
||||
.aspectRatio(2 / 3, contentMode: .fit)
|
||||
.clipShape(RoundedRectangle(cornerRadius: Corner.standard))
|
||||
.overlay(alignment: .topTrailing) {
|
||||
@@ -581,6 +584,7 @@ struct PosterTile: View {
|
||||
.padding(.horizontal, 6).padding(.vertical, 2)
|
||||
.background(.black.opacity(0.7), in: RoundedRectangle(cornerRadius: Corner.standard))
|
||||
.padding(6)
|
||||
.accessibilityLabel("and \(folded) more")
|
||||
}
|
||||
}
|
||||
Text(title.displayName).textStyle(.bodyMedium, semibold: true).foregroundStyle(scheme.onSurface)
|
||||
|
||||
Reference in new issue
Block a user