We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e1280b commit 3394423Copy full SHA for 3394423
TrollFools/OptionView.swift
@@ -64,6 +64,24 @@ struct OptionView: View {
64
}
65
} else {
66
wrappedContent
67
+ .alert(isPresented: $isWarningPresented) {
68
+ guard case .success(let urls) = temporaryResult else {
69
+ return Alert(title: Text("Error"))
70
+ }
71
+
72
+ return Alert(
73
+ title: Text(NSLocalizedString("Notice", comment: "")),
74
+ message: Text(Self.warningMessage(urls)),
75
+ primaryButton: .destructive(Text(NSLocalizedString("Continue and Don’t Show Again", comment: ""))) {
76
+ importerResult = temporaryResult
77
+ isImporterSelected = true
78
+ isWarningHidden = true
79
+ },
80
+ secondaryButton: .cancel() {
81
+ temporaryResult = nil
82
83
+ )
84
85
86
87
0 commit comments