Skip to content

Commit 46ab595

Browse files
authored
Merge pull request #2 from Vline-App/main
Update list of iOS defaults UserDefaults keys and prefixes
2 parents 05eda44 + b280865 commit 46ab595

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

Sources/UserDefaultsUI/Model/UserDefaultsModel.swift

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -87,30 +87,31 @@ private extension String {
8787
private extension String {
8888

8989
var isUserKey: Bool {
90-
!hasSystemPrefix
90+
!isSystemKey
9191
}
9292

9393
var isSystemKey: Bool {
94-
hasSystemPrefix
95-
}
96-
97-
var hasSystemPrefix: Bool {
98-
99-
let prefixes = [
94+
let systemKeysAndPrefixes = [
10095
"AddingEmojiKeybordHandled",
10196
"AK",
10297
"Apple",
98+
"CarCapabilities",
10399
"com.apple.",
104100
"INNext",
105101
"internalSettings.",
106102
"METAL_",
103+
"MPDebugEUVolumeLimit",
104+
"MSVLoggingMasterSwitchEnabledKey",
105+
"NNext",
107106
"NS",
108107
"PK",
108+
"shouldShowRSVPDataDetectors",
109+
"TVRC",
109110
"WebKit"
110111
]
111112

112-
for prefix in prefixes {
113-
if hasPrefix(prefix) {
113+
for systemKeyOrPrefix in systemKeysAndPrefixes {
114+
if hasPrefix(systemKeyOrPrefix) {
114115
return true
115116
}
116117
}

0 commit comments

Comments
 (0)