@Claude31
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'm aware that this can be easily achieved using two independent variables, I'm just tryin to see if it's possible using a tuple.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: