Skip to content

Commit

Permalink
Some fixes for voiceover (#2293)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevestreza-ksr authored Feb 19, 2025
1 parent c20a626 commit 66b9dea
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ struct PPOAddressSummary: View {
.frame(maxWidth: Constants.maxWidth, alignment: Constants.textAlignment)
}
.frame(maxWidth: Constants.maxWidth)
.accessibilityElement(children: .combine)
}

private enum Constants {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ struct PPOAlertFlag: View {
width: Constants.cornerRadius,
height: Constants.cornerRadius
)))
.accessibilityElement(children: .combine)
.accessibilityAddTraits(.isStaticText)
}

var image: Image {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ struct PPOView: View {
.background(Color(PPOStyles.header.background))
.foregroundStyle(Color(PPOStyles.header.foreground))
.padding(PPOStyles.header.padding)
.accessibilityAddTraits(.isHeader)
}

@ViewBuilder func listView(values: [PPOProjectCardViewModel], parentSize: CGSize) -> some View {
Expand Down
1 change: 1 addition & 0 deletions Library/PagedContainer/PagedTabBar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public struct PagedTabBar<Page: TabBarPage>: View {

alignment: Constants.badge.alignment
)
.accessibilityElement(children: .combine)
}

private func isSelected(page: Page) -> Bool {
Expand Down

0 comments on commit 66b9dea

Please # to comment.