PrefUI // +checkAbusersOfSecureEventInputAPI().

This commit is contained in:
ShikiSuen 2023-10-23 11:48:19 +08:00
parent 8d89da0c2b
commit 6e946f5db1
1 changed files with 16 additions and 0 deletions

View File

@ -26,6 +26,12 @@ public struct VwrSettingsPaneDevZone: View {
)
private var securityHardenedCompositionBuffer: Bool
@AppStorage(
wrappedValue: true,
UserDef.kCheckAbusersOfSecureEventInputAPI.rawValue
)
private var checkAbusersOfSecureEventInputAPI: Bool
// MARK: - Main View
public var body: some View {
@ -54,6 +60,16 @@ public struct VwrSettingsPaneDevZone: View {
)
.settingsDescription()
}
VStack(alignment: .leading) {
Toggle(
(UserDef.kCheckAbusersOfSecureEventInputAPI.metaData?.shortTitle ?? "i18n:UserDef.kCheckAbusersOfSecureEventInputAPI.shortTitle").localized,
isOn: $checkAbusersOfSecureEventInputAPI
)
Text(
(UserDef.kCheckAbusersOfSecureEventInputAPI.metaData?.description ?? "i18n:UserDef.kCheckAbusersOfSecureEventInputAPI.description").localized
)
.settingsDescription()
}
}
}.formStyled().frame(minWidth: CtlSettingsUI.formWidth, maxWidth: ceil(CtlSettingsUI.formWidth * 1.2))
}