Xcode – SwiftUI: Creating custom alert
I'm trying to abstract an Alert which is being used in multiple places across my app. I copied and pasted the implementation of func alert(isPresented: Binding<Bool>, content: () -> Alert) -> some View and tweaked it to adapt it to…