iOS SwiftUI Accessibility

分类: 数据与AI | 上传者: cvs-healthcvs-health | 下载: 0 | 版本: v1.0(最新)

在编写 SwiftUI 时强制执行 WCAG 2.2 可访问的编码模式 - 标签、特征、动态类型、对比度、触摸目标、焦点管理等。基于 ios-swiftui-accessibility-techniques 项目,包含 17 条 WCAG 标准的 31 条静态分析规则。

更新日志: Source: GitHub https://github.com/cvs-health/ios-swiftui-accessibility-techniques

目录结构

当前层级: tree/main/

  • 📁 .claude/
    • 📄 settings.json 580 B
  • 📁 .github/
    • 📁 workflows/
      • 📄 accessibility-snapshots.yml 662 B
      • 📄 swiftlint.yml 8.0 KB
    • 📄 pull_request_template.md 709 B
  • 📁 .vscode/
    • 📄 launch.json 826 B
  • 📁 A11yAgent/
    • 📁 .github/
      • 📁 workflows/
        • 📄 a11y-check.yml 5.9 KB
    • 📁 homebrew/
      • 📄 a11y-check.rb 1.4 KB
    • 📁 mcp-server/
      • 📁 src/
        • 📄 index.ts 9.6 KB
      • 📄 .gitignore 41 B
      • 📄 claude-desktop-mcp-example.json 327 B
      • 📄 cursor-mcp-example.json 387 B
      • 📄 package-lock.json 56.4 KB
      • 📄 package.json 722 B
      • 📄 README.md 8.6 KB
      • 📄 tsconfig.json 297 B
      • 📄 vscode-mcp-example.json 359 B
      • 📄 windsurf-mcp-example.json 327 B
    • 📁 Plugins/
      • 📁 A11yCheckBuildPlugin/
        • 📄 A11yCheckBuildPlugin.swift 2.2 KB
      • 📁 A11yCheckPlugin/
        • 📄 A11yCheckPlugin.swift 2.1 KB
    • 📁 Sources/
      • 📁 A11yAgentCLI/
        • 📄 A11yCheck.swift 18.8 KB
        • 📄 BuildInfo.swift 50 B
      • 📁 A11yAgentCore/
        • 📁 Configuration/
          • 📄 A11yConfig.swift 7.6 KB
        • 📁 Models/
          • 📄 A11yDiagnostic.swift 3.2 KB
          • 📄 A11yScore.swift 5.4 KB
        • 📁 Rules/
          • 📄 A11yRule.swift 3.7 KB
          • 📄 AccessibilityHiddenRules.swift 3.1 KB
          • 📄 AnimationRules.swift 8.3 KB
          • 📄 ButtonRules.swift 8.6 KB
          • 📄 ColorContrastRule.swift 5.1 KB
          • 📄 DarkModeRules.swift 2.7 KB
          • 📄 DynamicTypeRules.swift 3.0 KB
          • 📄 FocusReturnRules.swift 9.7 KB
          • 📄 FormControlRules.swift 13.8 KB
          • 📄 GestureAlternativeRules.swift 4.8 KB
          • 📄 GroupingRules.swift 6.0 KB
          • 📄 HeadingRules.swift 6.7 KB
          • 📄 HintRules.swift 8.5 KB
          • 📄 ImageRules.swift 7.4 KB
          • 📄 InputPurposeRule.swift 9.2 KB
          • 📄 LabelInNameRules.swift 3.4 KB
          • 📄 LinkRules.swift 5.8 KB
          • 📄 OrientationRules.swift 4.5 KB
          • 📄 PageTitleRules.swift 3.3 KB
          • 📄 TimingRules.swift 3.2 KB
          • 📄 ToggleRules.swift 2.9 KB
          • 📄 TouchTargetRules.swift 5.7 KB
          • 📄 TraitRules.swift 1.6 KB
        • 📁 Utilities/
          • 📄 AssetCatalogParser.swift 3.6 KB
          • 📄 ColorParser.swift 7.0 KB
          • 📄 ContrastCalculator.swift 1.7 KB
        • 📁 Visitors/
          • 📄 GestureVisitor.swift 3.6 KB
          • 📄 ModifierCollector.swift 6.3 KB
          • 📄 ViewHierarchyVisitor.swift 7.6 KB
        • 📄 AutoFixer.swift 5.4 KB
        • 📄 BadgeGenerator.swift 3.0 KB
        • 📄 Baseline.swift 3.4 KB
        • 📄 DiffFilter.swift 4.4 KB
        • 📄 Formatters.swift 10.2 KB
        • 📄 HTMLFormatter.swift 41.6 KB
        • 📄 InlineSuppressionFilter.swift 2.9 KB
        • 📄 RuleDocsGenerator.swift 2.7 KB
        • 📄 RuleRegistry.swift 6.9 KB
        • 📄 SARIFFormatter.swift 4.6 KB
        • 📄 ScoreCalculator.swift 9.9 KB
        • 📄 ScoreFormatter.swift 7.8 KB
        • 📄 TrendTracker.swift 9.1 KB
        • 📄 ViewScorer.swift 6.5 KB
      • 📁 A11yAgentLLM/
        • 📄 LLMProvider.swift 6.6 KB
    • 📁 Tests/
      • 📁 A11yAgentCoreTests/
        • 📁 Fixtures/
          • 📄 ButtonFixtures.swift 1.6 KB
          • 📄 HeadingFixtures.swift 573 B
          • 📄 ImageFixtures.swift 1.0 KB
          • 📄 MiscFixtures.swift 1.7 KB
        • 📄 A11yAgentCoreTests.swift 37.6 KB
    • 📄 a11y-badge.svg 1.0 KB
    • 📄 generate-build-info.sh 317 B
    • 📄 Package.resolved 848 B
    • 📄 Package.swift 2.4 KB
    • 📄 README.md 32.7 KB
  • 📁 Formula/
    • 📄 a11y-check.rb 1.2 KB
  • 📁 iOSswiftUIa11yTechniques/
    • 📁 a11yTechniques Watch App/
      • 📁 Assets.xcassets/
        • 📁 AccentColor.colorset/
          • 📄 Contents.json 123 B
        • 📁 AppIcon.appiconset/
          • 📄 Contents.json 318 B
          • 📄 swiftUIa11yIcon.jpg 58.2 KB
        • 📁 barcode.viewfinder.symbolset/
          • 📄 barcode.viewfinder.svg 19.3 KB
          • 📄 Contents.json 169 B
        • 📁 get10off.imageset/
          • 📄 Contents.json 306 B
          • 📄 get10off.png 37.3 KB
        • 📁 newspaper.symbolset/
          • 📄 Contents.json 160 B
          • 📄 newspaper.svg 19.4 KB
        • 📄 Contents.json 63 B
      • 📁 Preview Content/
        • 📁 Preview Assets.xcassets/
          • 📄 Contents.json 63 B
      • 📄 a11yTechniquesApp.swift 266 B
      • 📄 AccessibilitySortPriorityWatch.swift 4.2 KB
      • 📄 CombiningFocusWatch.swift 5.5 KB
      • 📄 ContentViewWatch.swift 2.5 KB
      • 📄 DecorativeImagesWatch.swift 7.1 KB
      • 📄 FunctionalImagesWatch.swift 9.0 KB
      • 📄 HeadingsWatch.swift 8.8 KB
      • 📄 InformativeImagesWatch.swift 7.8 KB
      • 📄 PickersWatch.swift 8.5 KB
      • 📄 SheetsWatch.swift 6.4 KB
      • 📄 TabsWatch.swift 13.9 KB
      • 📄 TargetSizeWatch.swift 6.4 KB
      • 📄 Techniques.swift 561 B
      • 📄 TextFieldsWatch.swift 13.7 KB
    • 📁 a11yTechniques Watch AppTests/
      • 📄 a11yTechniques_Watch_AppTests.swift 363 B
    • 📁 a11yTechniques Watch AppUITests/
      • 📄 a11yTechniques_Watch_AppUITests.swift 1.4 KB
      • 📄 a11yTechniques_Watch_AppUITestsLaunchTests.swift 865 B
    • 📁 Documentation/
      • 📄 A11yCheck.md 9.4 KB
      • 📄 AccessibilityActions.md 1.6 KB
      • 📄 AccessibilityDetection.md 1.6 KB
      • 📄 AccessibilityHidden.md 1.5 KB
      • 📄 AccessibilityHint.md 1.9 KB
      • 📄 AccessibilityIdentifier.md 1.4 KB
      • 📄 AccessibilityInputLabels.md 1.4 KB
      • 📄 AccessibilityLabel.md 1.8 KB
      • 📄 AccessibilityNotifications.md 1.6 KB
      • 📄 AccessibilityRepresentation.md 1.3 KB
      • 📄 AccessibilityRespondsToUserInteraction.md 1.5 KB
      • 📄 AccessibilitySortPriority.md 1.4 KB
      • 📄 AccessibilityTraits.md 1.4 KB
      • 📄 AccessibilityValue.md 1.7 KB
      • 📄 Accordions.md 1.7 KB
      • 📄 AdjustableAction.md 1.5 KB
      • 📄 Alerts.md 1.8 KB
      • 📄 AssistiveAccess.md 1.6 KB
      • 📄 AttributedStrings.md 1.4 KB
      • 📄 Buttons.md 1.7 KB
      • 📄 Cards.md 1.5 KB
      • 📄 Carousels.md 1.5 KB
      • 📄 Charts.md 1.4 KB
      • 📄 Checkboxes.md 1.7 KB
      • 📄 CombiningFocus.md 1.6 KB
      • 📄 ConfirmationDialogs.md 1.7 KB
      • 📄 Containers.md 1.6 KB
      • 📄 Contrast.md 2.1 KB
      • 📄 DarkMode.md 1.5 KB
      • 📄 DataTables.md 2.0 KB
      • 📄 DateTimePickers.md 2.4 KB
      • 📄 DecorativeImages.md 1.5 KB
      • 📄 DeviceOrientation.md 1.4 KB
      • 📄 DimFlashingLights.md 1.4 KB
      • 📄 DragDrop.md 2.0 KB
      • 📄 DynamicType.md 2.5 KB
      • 📄 ErrorValidation.md 2.0 KB
      • 📄 EscapeAction.md 1.3 KB
      • 📄 FocusManagement.md 2.1 KB
      • 📄 FunctionalImages.md 1.6 KB
      • 📄 GroupingControls.md 1.6 KB
      • 📄 Headings.md 2.4 KB
      • 📄 HorizontalScrollViews.md 1.3 KB
      • 📄 Images.md 1.4 KB
      • 📄 IncreaseContrast.md 1.5 KB
      • 📄 InformativeImages.md 1.6 KB
      • 📄 InputInstructions.md 1.4 KB
      • 📄 Language.md 1.8 KB
      • 📄 LargeContentViewer.md 1.5 KB
      • 📄 Links.md 2.5 KB
      • 📄 Lists.md 1.4 KB
      • 📄 MagicTap.md 1.2 KB
      • 📄 Maps.md 1.5 KB
      • 📄 MeaningfulAccessibleNames.md 1.8 KB
      • 📄 Menus.md 1.5 KB
      • 📄 MultiSelectionLists.md 1.7 KB
      • 📄 Navigation.md 1.5 KB
      • 📄 PageTitles.md 1.1 KB
      • 📄 Pickers.md 2.4 KB
      • 📄 Popovers.md 1.8 KB
      • 📄 ProgressIndicators.md 1.6 KB
      • 📄 RadioButtons.md 2.0 KB
      • 📄 ReadingOrder.md 1.7 KB
      • 📄 ReduceMotion.md 1.4 KB
      • 📄 ReduceTransparency.md 1.6 KB
      • 📄 RedundantEntry.md 1.4 KB
      • 📄 ResponsiveLayouts.md 1.7 KB
      • 📄 Rotor.md 1.3 KB
      • 📄 ScrollViews.md 1.2 KB
      • 📄 SearchSuggestions.md 1.2 KB
      • 📄 SegmentedControls.md 1.4 KB
      • 📄 Sheets.md 2.2 KB
      • 📄 Sliders.md 1.8 KB
      • 📄 SmartInvert.md 1.3 KB
      • 📄 Steppers.md 1.4 KB
      • 📄 SwiftLint.md 1.4 KB
      • 📄 Tabs.md 2.5 KB
      • 📄 TextFields.md 2.3 KB
      • 📄 TipKit.md 1.2 KB
      • 📄 Toggles.md 1.7 KB
      • 📄 Toolbars.md 1.5 KB
      • 📄 TouchTargetSize.md 1.5 KB
      • 📄 Videos.md 2.4 KB
      • 📄 VoiceOverPronunciation.md 1.6 KB
      • 📄 XCTestAccessibility.md 4.9 KB
    • 📁 iOSswiftUIa11yTechniques/
      • 📁 Assets.xcassets/
        • 📁 AccentColor.colorset/
          • 📄 Contents.json 701 B
        • 📁 AppIcon.appiconset/
          • 📄 Contents.json 219 B
          • 📄 swiftUIa11yIcon.jpg 58.2 KB
        • 📁 barber-shop.imageset/
          • 📄 barber-shop.jpg 316.5 KB
          • 📄 Contents.json 309 B
        • 📁 barcode.viewfinder.symbolset/
          • 📄 barcode.viewfinder.svg 19.3 KB
          • 📄 Contents.json 169 B
        • 📁 carousel.imageset/
          • 📄 carousel.jpg 453.3 KB
          • 📄 Contents.json 306 B
        • 📁 get10off.imageset/
          • 📄 Contents.json 306 B
          • 📄 get10off.png 37.3 KB
        • 📁 mardi-gras.imageset/
          • 📄 Contents.json 308 B
          • 📄 mardi-gras.jpg 310.7 KB
        • 📁 newspaper.symbolset/
          • 📄 Contents.json 160 B
          • 📄 newspaper.svg 19.4 KB
        • 📁 stained-glass.imageset/
          • 📄 Contents.json 311 B
          • 📄 stained-glass.jpg 1.1 MB
        • 📄 Contents.json 63 B
      • 📁 Preview Content/
        • 📁 Preview Assets.xcassets/
          • 📄 Contents.json 63 B
      • 📁 Prototypes/
        • 📄 ContactAtlanta.swift 10.3 KB
        • 📄 ContactAustin.swift 10.2 KB
        • 📄 ContactBoston.swift 13.7 KB
        • 📄 ContactFormView.swift 1.5 KB
        • 📄 ContactOrlando.swift 10.8 KB
        • 📄 ContactReno.swift 9.8 KB
        • 📄 ContactSeattle.swift 9.7 KB
        • 📄 DOBpicker.swift 3.0 KB
        • 📄 MarkdownView.swift 5.6 KB
        • 📄 PrototypesView.swift 1.9 KB
        • 📄 SignUp0.swift 16.2 KB
        • 📄 SignUp1.swift 31.8 KB
        • 📄 SignUp2.swift 28.8 KB
        • 📄 SignUpA.swift 10.9 KB
        • 📄 SignUpB.swift 4.9 KB
        • 📄 SignUpC.swift 5.3 KB
        • 📄 SignUpD.swift 3.4 KB
        • 📄 ThankYou.swift 1.3 KB
      • 📄 A11yCheckView.swift 43.3 KB
      • 📄 A11yEnhancementsView.swift 2.2 KB
      • 📄 AccessibilityHidden.swift 5.5 KB
      • 📄 AccessibilityHintView.swift 9.2 KB
      • 📄 AccessibilityIdentifier.swift 4.1 KB
      • 📄 AccessibilityLabelView.swift 8.2 KB
      • 📄 AccessibilityNotificationsView.swift 4.6 KB
      • 📄 AccessibilityRepresentationView.swift 7.8 KB
      • 📄 AccessibilityRespondsToUserInteraction.swift 4.5 KB
      • 📄 AccessibilitySortPriority.swift 4.2 KB
      • 📄 AccessibilityTraitsView.swift 6.4 KB
      • 📄 AccessibilityValueView.swift 11.0 KB
      • 📄 AccordionsView.swift 6.9 KB
      • 📄 ActionsView.swift 18.4 KB
      • 📄 AdjustableActionView.swift 6.5 KB
      • 📄 AlertsView.swift 5.2 KB
      • 📄 AssistiveAccessView.swift 3.3 KB
      • 📄 ATdetectionView.swift 7.4 KB
      • 📄 AttributedStringsView.swift 5.2 KB
      • 📄 ButtonsView.swift 10.8 KB
      • 📄 CardsView.swift 21.6 KB
      • 📄 CarouselView.swift 31.2 KB
      • 📄 CarouselViewBad.swift 14.3 KB
      • 📄 ChartsView.swift 9.9 KB
      • 📄 CheckboxesView.swift 10.2 KB
      • 📄 CombiningFocusView.swift 5.1 KB
      • 📄 ConfirmationDialogsView.swift 5.0 KB
      • 📄 ContainersView.swift 6.9 KB
      • 📄 ContentView.swift 9.5 KB
      • 📄 ContrastView.swift 9.6 KB
      • 📄 DarkModeView.swift 6.8 KB
      • 📄 DataTablesView.swift 16.8 KB
      • 📄 DateTimePickers.swift 9.0 KB
      • 📄 DecorativeView.swift 6.3 KB
      • 📄 DetailView.swift 1.0 KB
      • 📄 DeviceOrientationBad.swift 3.0 KB
      • 📄 DeviceOrientationGood.swift 2.4 KB
      • 📄 DeviceOrientationView.swift 3.4 KB
      • 📄 DimFlashingLightsView.swift 6.4 KB
      • 📄 DragDropView.swift 9.9 KB
      • 📄 DynamicTypeView.swift 14.1 KB
      • 📄 ErrorValidationView.swift 25.1 KB
      • 📄 EscapeView.swift 6.7 KB
      • 📄 FocusManagementView.swift 8.6 KB
      • 📄 FunctionalView.swift 7.8 KB
      • 📄 GroupingControlsView.swift 7.3 KB
      • 📄 HeadingsView.swift 11.0 KB
      • 📄 HomeTabView.swift 3.2 KB
      • 📄 HorizontalScrollView.swift 9.9 KB
      • 📄 ImagesView.swift 1.3 KB
      • 📄 IncreaseContrastView.swift 4.7 KB
      • 📄 Info.plist 352 B
      • 📄 InformativeView.swift 13.0 KB
      • 📄 InputInstructionsView.swift 7.3 KB
      • 📄 InputLabelsView.swift 5.2 KB
      • 📄 iOSswiftUIa11yTechniquesApp.swift 1.2 KB
      • 📄 LanguageOfPageBadView.swift 2.2 KB
      • 📄 LanguageOfPageGoodView.swift 2.2 KB
      • 📄 LanguageView.swift 6.3 KB
      • 📄 LargeContentViewerView.swift 6.8 KB
      • 📄 LinksView.swift 12.5 KB
      • 📄 ListsView.swift 3.8 KB
      • 📄 MagicTapView.swift 2.6 KB
      • 📄 MapView.swift 7.6 KB
      • 📄 MeaningfulAccessibleNamesView.swift 9.7 KB
      • 📄 MenusView.swift 12.5 KB
      • 📄 MessagesTabView.swift 2.4 KB
      • 📄 MultiSelectionListView.swift 10.7 KB
      • 📄 NavigationLinkView.swift 7.4 KB
      • 📄 PageTitleBad.swift 1.2 KB
      • 📄 PageTitleGood.swift 1.2 KB
      • 📄 PageTitlesView.swift 4.6 KB
      • 📄 PickersView.swift 12.5 KB
      • 📄 PopoversView.swift 6.1 KB
      • 📄 ProgressIndicatorsView.swift 7.4 KB
      • 📄 RadioButtonsView.swift 13.0 KB
      • 📄 ReadingOrderView.swift 7.0 KB
      • 📄 ReduceMotionView.swift 5.6 KB
      • 📄 ReduceTransparencyView.swift 4.1 KB
      • 📄 RedundantEntryView.swift 16.1 KB
      • 📄 ResponsiveLayoutsView.swift 15.7 KB
      • 📄 RotorView.swift 3.9 KB
      • 📄 ScrollViews.swift 3.4 KB
      • 📄 SearchSuggestionsView.swift 8.1 KB
      • 📄 SegmentedControlsView.swift 4.5 KB
      • 📄 SheetsView.swift 15.9 KB
      • 📄 SlidersView.swift 8.4 KB
      • 📄 SmartInvertView.swift 7.2 KB
      • 📄 SteppersView.swift 6.6 KB
      • 📄 SwiftLintView.swift 6.0 KB
      • 📄 TableView.swift 1.9 KB
      • 📄 TabsGoodView.swift 1.4 KB
      • 📄 TabsView.swift 12.5 KB
      • 📄 Techniques.swift 3.5 KB
      • 📄 TextEditorView.swift 1.5 KB
      • 📄 TextFieldsFocusManagement.swift 7.6 KB
      • 📄 TextFieldsView.swift 17.2 KB
      • 📄 TipKitView.swift 8.9 KB
      • 📄 TogglesView.swift 16.8 KB
      • 📄 ToolbarView.swift 10.0 KB
      • 📄 TouchTargetSize.swift 6.5 KB
      • 📄 UIControlsView.swift 3.4 KB
      • 📄 UserPreferencesView.swift 1.6 KB
      • 📄 VideosView.swift 7.4 KB
      • 📄 VoiceOverAnnouncementDelayView.swift 10.2 KB
      • 📄 VoiceOverPronunciationView.swift 5.5 KB
      • 📄 WebView.swift 2.1 KB
    • 📁 iOSswiftUIa11yTechniques.xcodeproj/
      • 📁 project.xcworkspace/
        • 📁 xcshareddata/
          • 📁 swiftpm/
            • 📄 Package.resolved 1.8 KB
          • 📄 IDEWorkspaceChecks.plist 238 B
        • 📄 contents.xcworkspacedata 135 B
      • 📁 xcshareddata/
        • 📁 xcschemes/
          • 📄 a11yTechniques Watch App.xcscheme 4.6 KB
          • 📄 FastlaneSnapshotsUITests.xcscheme 1.9 KB
          • 📄 iOSswiftUIa11yTechniques.xcscheme 3.5 KB
          • 📄 iOSswiftUIa11yTechniquesTests.xcscheme 1.9 KB
      • 📄 project.pbxproj 117.4 KB
    • 📁 iOSswiftUIa11yTechniquesTests/
      • 📁 __Snapshots__/
        • 📁 AccessibilitySnapshotTests/
          • 📄 testButtonsViewAccessibilitySnapshot.1.png 715.3 KB
          • 📄 testErrorValidationViewAccessibilitySnapshot.1.png 701.9 KB
          • 📄 testInformativeViewAccessibilitySnapshot.1.png 892.1 KB
      • 📄 AccessibilitySnapshotTests.swift 2.2 KB
    • 📁 iOSswiftUIa11yTechniquesUITests/
      • 📄 iOSswiftUIa11yTechniquesUITests.swift 40.3 KB
      • 📄 iOSswiftUIa11yTechniquesUITestsLaunchTests.swift 1.3 KB
    • 📄 Gemfile.lock 6.0 KB
  • 📄 .gitignore 2.2 KB
  • 📄 .swiftlint.yml 1.1 KB
  • 📄 a11y-check-report.html 742.1 KB
  • 📄 CHANGELOG.md 6.7 KB
  • 📄 CLAUDE.md 2.0 KB
  • 📄 CONTRIBUTING.md 1.3 KB
  • 📄 LICENSE 11.1 KB
  • 📄 Package.swift 2.6 KB
  • 📄 PRESENTATION.html 16.0 KB
  • 📄 README.md 12.4 KB
  • 📄 SKILL.md 12.2 KB
  • 📄 xcode-a11y-check.jpg 997.4 KB

SKILL.md

登录后下载/点赞/收藏 ❤ 310 | ★ 0
评论 0

请先登录后评论。

评论加载中...