Skip to content

Commit

Permalink
Merge pull request #222 from TelemetryDeck/feature/adjust-accessibility
Browse files Browse the repository at this point in the history
Remove VoiceOver and SwitchControl addressing community feedback
  • Loading branch information
Jeehut authored Jan 14, 2025
2 parents e1a5f4e + f7974a1 commit 04d2de6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Sources/TelemetryDeck/Signals/Signal.swift
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ extension DefaultSignalPayload {
var a11yParams: [String: String] = [:]

#if os(iOS) || os(tvOS)
a11yParams["TelemetryDeck.Accessibility.isVoiceOverEnabled"] = "\(UIAccessibility.isVoiceOverRunning)"
a11yParams["TelemetryDeck.Accessibility.isReduceMotionEnabled"] = "\(UIAccessibility.isReduceMotionEnabled)"
a11yParams["TelemetryDeck.Accessibility.isBoldTextEnabled"] = "\(UIAccessibility.isBoldTextEnabled)"
a11yParams["TelemetryDeck.Accessibility.isInvertColorsEnabled"] = "\(UIAccessibility.isInvertColorsEnabled)"
Expand All @@ -134,9 +133,7 @@ extension DefaultSignalPayload {
}
a11yParams["TelemetryDeck.Accessibility.preferredContentSizeCategory"] = UIApplication.shared.preferredContentSizeCategory.rawValue
.replacingOccurrences(of: "UICTContentSizeCategory", with: "") // replaces output "UICTContentSizeCategoryL" with "L"
a11yParams["TelemetryDeck.Accessibility.isSwitchControlEnabled"] = "\(UIAccessibility.isSwitchControlRunning)"
#elseif os(macOS)
a11yParams["TelemetryDeck.Accessibility.isVoiceOverEnabled"] = "\(NSWorkspace.shared.isVoiceOverEnabled)"
if let systemPrefs = UserDefaults.standard.persistentDomain(forName: "com.apple.universalaccess") {
a11yParams["TelemetryDeck.Accessibility.isReduceMotionEnabled"] = "\(systemPrefs["reduceMotion"] as? Bool ?? false)"
a11yParams["TelemetryDeck.Accessibility.isInvertColorsEnabled"] = "\(systemPrefs["InvertColors"] as? Bool ?? false)"
Expand Down

0 comments on commit 04d2de6

Please sign in to comment.