- .help("If this is on, the app can be controlled remotely using the captura: URL scheme.")
- .confirmationDialog("This may be dangerous and can allow websites to remotely record your computer.", isPresented: $showConfirmation, actions: {
- Button("I Understand The Risk", role: .destructive) {
- showConfirmation = false
- }
- Button("Cancel", role: .cancel) {
- showConfirmation = false
- allowURLAutomation = false
- }
- })
- .onChange(of: allowURLAutomation, perform: { newValue in
- if newValue {
- showConfirmation = true
+ .help(
+ "If this is on, the app can be controlled remotely using the captura: URL scheme."
+ )
+ .confirmationDialog(
+ "This may be dangerous and can allow websites to remotely record your computer.",
+ isPresented: $showConfirmation,
+ actions: {
+ Button("I Understand The Risk", role: .destructive) {
+ showConfirmation = false
+ }
+ Button("Cancel", role: .cancel) {
+ showConfirmation = false
+ allowURLAutomation = false
+ }