Ease voice over navigation combining key and values view elements in ItemViewDetails

This commit is contained in:
David Cordero 2022-01-16 21:04:01 +01:00
parent d08365da20
commit 7a188bd922
2 changed files with 5 additions and 1 deletions

View File

@ -88,7 +88,7 @@ struct HomeView: View {
.font(.title2)
.fontWeight(.bold)
.accessibility(addTraits: [.isHeader])
Spacer()
Button {

View File

@ -32,6 +32,7 @@ struct ItemViewDetailsView: View {
.font(.subheadline)
.foregroundColor(Color.secondary)
}
.accessibilityElement(children: .combine)
}
}
.padding(.bottom, 20)
@ -50,6 +51,7 @@ struct ItemViewDetailsView: View {
.font(.subheadline)
.foregroundColor(Color.secondary)
}
.accessibilityElement(children: .combine)
VStack(alignment: .leading, spacing: 2) {
L10n.containers.text
@ -58,6 +60,7 @@ struct ItemViewDetailsView: View {
.font(.subheadline)
.foregroundColor(Color.secondary)
}
.accessibilityElement(children: .combine)
ForEach(viewModel.selectedVideoPlayerViewModel?.mediaItems ?? [], id: \.self.title) { mediaItem in
VStack(alignment: .leading, spacing: 2) {
@ -67,6 +70,7 @@ struct ItemViewDetailsView: View {
.font(.subheadline)
.foregroundColor(Color.secondary)
}
.accessibilityElement(children: .combine)
}
}
}