@State var emailAlert: (active: Bool, dept: Department)
And I want to use it with the alert ViewModifier like so — .alert(emailAlert.dept.name, isPresented: *** I want to use the active value here ***) {}
I am aware that this is easily achievable with two independent State variables, I am just trying to see if it's possible using tuple values.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: