From 24682bd1d9853d4e7d150f65865759e954b57be6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bianca=20H=C3=B6llm=C3=BCller?= <32326182+biancaaaaa@users.noreply.github.com> Date: Tue, 9 Jul 2024 11:03:33 +0200 Subject: [PATCH] Feature/ios add accessibility settings (#51) * feature: add accessibility settings option iOS * fix: fix accessibility path --------- Co-authored-by: biancahoellmueller --- README.md | 1 + ios/Plugin/NativeSettingsPlugin.swift | 3 ++- src/definitions.ts | 5 +++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5cec35d..c590621 100644 --- a/README.md +++ b/README.md @@ -234,5 +234,6 @@ might break in future iOS versions or have your app rejected in the App Store. | **`DoNotDisturb`** | 'doNotDisturb' | Do Not Disturb settings. | | **`TouchIdPasscode`** | 'touchIdPasscode' | Touch id passcode settings. | | **`ScreenTime`** | 'screenTime' | Screen Time settings. | +| **`Accessibility`** | 'accessibility' | Accessibility settings. | diff --git a/ios/Plugin/NativeSettingsPlugin.swift b/ios/Plugin/NativeSettingsPlugin.swift index 06e239d..72115c7 100644 --- a/ios/Plugin/NativeSettingsPlugin.swift +++ b/ios/Plugin/NativeSettingsPlugin.swift @@ -32,7 +32,8 @@ public class NativeSettingsPlugin: CAPPlugin { "tethering": "App-prefs:INTERNET_TETHERING", "doNotDisturb": "App-prefs:DO_NOT_DISTURB", "touchIdPasscode": "App-prefs:TOUCHID_PASSCODE", - "screenTime": "App-prefs:SCREEN_TIME" + "screenTime": "App-prefs:SCREEN_TIME", + "accessibility": "App-prefs:ACCESSIBILITY" ] @objc func open(_ call: CAPPluginCall) { diff --git a/src/definitions.ts b/src/definitions.ts index 056c638..5491b92 100644 --- a/src/definitions.ts +++ b/src/definitions.ts @@ -418,4 +418,9 @@ export enum IOSSettings { * Screen Time settings. */ ScreenTime = 'screenTime', + + /** + * Accessibility settings. + */ + Accessibility = 'accessibility', }