Add Accessibility support
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Summary
Add baseline accessibility support so views expose meaningful labels, values, traits, and actions to assistive technologies on supported hosts.
Scope
- Complete public view modifiers for accessibility labels, values, hints, identifiers, hidden state, and traits.
- Support
.accessibilityElement(children:)with.ignore,.combine, and.containchild behavior. - Derive default accessibility information from
Text,Image,Label, and controls, including control roles and enabled state. - Expose accessibility elements and their geometry through supported host accessibility systems, and update them when view content, layout, or state changes.
- Connect default, named, and adjustable accessibility actions to their handlers, including disabled-state handling for controls.
- Add examples and focused coverage for semantics, grouping, hidden content, state updates, and accessibility activation.
Acceptance criteria
- Text and labeled controls expose the expected labels, values, and traits without explicit accessibility modifiers.
- Explicit accessibility modifiers update the exposed properties, and hidden content is excluded from accessibility navigation.
- Element grouping ignores, combines, or contains child elements as requested.
- Assistive technologies can navigate rendered elements and invoke their supported default, named, and adjustable actions.
- Accessibility activation invokes an enabled button's action once; a disabled button does not invoke its action.
- Changes to labels, values, enabled state, and layout are reflected in the host accessibility tree.
API reference
PRs
- AccessibilityCore: #1114
- Accessibility & AccessibilityModifier: #1117
- Hosting accessibility support
- Ngôn ngữ chính
- Swift
- Star
- 2.5k
- Fork
- 84
- Merge trung bình
- 2 giờ 10 phút
- Pull request đã merge (30 ngày)
- 62
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của OpenSwiftUIProject/OpenSwiftUI
-
Add Gauge supportĐang mởarea: rendering area: view type: feature
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
OpenSwiftUIProject/OpenSwiftUI#1022 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: animation area: rendering contrib: help wanted impact: visual-diff type: bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
OpenSwiftUIProject/OpenSwiftUI#984 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add List supportĐang mởarea: layout area: rendering area: view type: feature
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 28/100
OpenSwiftUIProject/OpenSwiftUI#919 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add ScrollView supportĐang mởarea: layout area: rendering area: view type: feature
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
OpenSwiftUIProject/OpenSwiftUI#918 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add NavigationView supportĐang mởarea: compatibility area: view type: feature
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
OpenSwiftUIProject/OpenSwiftUI#917 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của OpenSwiftUIProject/OpenSwiftUI
Issue tương tự
-
builtin-port enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
cmlarsen/writemorebetter#235 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug-pending-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
NativeScript/NativeScript#11525 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
callstack/agent-device#3627 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
maziyarpanahi/openmed#4207 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày