Skip to content

Commit

Permalink
Feature/ios add accessibility settings (#51)
Browse files Browse the repository at this point in the history
* feature: add accessibility settings option iOS

* fix: fix accessibility path

---------

Co-authored-by: biancahoellmueller <[email protected]>
  • Loading branch information
biancaaaaa and biancahoellmueller authored Jul 9, 2024
1 parent a95ca56 commit 24682bd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,5 +234,6 @@ might break in future iOS versions or have your app rejected in the App Store.
| **`DoNotDisturb`** | <code>'doNotDisturb'</code> | Do Not Disturb settings. |
| **`TouchIdPasscode`** | <code>'touchIdPasscode'</code> | Touch id passcode settings. |
| **`ScreenTime`** | <code>'screenTime'</code> | Screen Time settings. |
| **`Accessibility`** | <code>'accessibility'</code> | Accessibility settings. |

</docgen-api>
3 changes: 2 additions & 1 deletion ios/Plugin/NativeSettingsPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
5 changes: 5 additions & 0 deletions src/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -418,4 +418,9 @@ export enum IOSSettings {
* Screen Time settings.
*/
ScreenTime = 'screenTime',

/**
* Accessibility settings.
*/
Accessibility = 'accessibility',
}

0 comments on commit 24682bd

Please sign in to comment.