Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Add Accessibility support

Đang mở
#1,112 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@Kyle-Ye đang làm issue này rồi.

Từ ngày 27/9/2026.

  • #1114 của @Kyle-Ye — đã merge

Đánh giá

Issue này chưa được đánh giá.

Mô tả

area: accessibility area: hosting-bridge type: feature

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 .contain child 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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của OpenSwiftUIProject/OpenSwiftUI

Tất cả issue của OpenSwiftUIProject/OpenSwiftUI

Issue tương tự

Thêm issue về Swift

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.