Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
michele-theleftbit committed Jan 15, 2025
1 parent 5bef0c9 commit 2b83030
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions Sources/BSWInterfaceKit/SwiftUI/ViewModifiers/BlockingTask.swift
Original file line number Diff line number Diff line change
Expand Up @@ -153,39 +153,4 @@ private struct PerformEquatableBlockingModifier<T: Equatable>: ViewModifier {
}
}


private struct BlockingAlertView: ViewModifier {

let title: String
let message: String?
let confirmButtonTitle: String
let cancelButtonTitle: String
let isDestructiveAction: Bool

@Binding
var presentingAlert: Bool

@Binding
var readyToPerform: Bool

func body(content: Content) -> some View {
content
.alert(
title,
isPresented: $presentingAlert,
actions: {
Button(cancelButtonTitle, role: .cancel) { }
Button(confirmButtonTitle, role: isDestructiveAction ? .destructive : nil, action: {
readyToPerform = true
})
},
message: {
if let messageAlert = message {
Text(messageAlert)
}
}
)
}
}

#endif

0 comments on commit 2b83030

Please sign in to comment.