PrefUI // +checkAbusersOfSecureEventInputAPI().
This commit is contained in:
parent
8d89da0c2b
commit
6e946f5db1
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue