How do I access a @State variable from a function that's inside a class that is inside the struct. The pseudocode looks like:
struct StructName: UIViewRepresentable {
@State var variableName = value
class className: NSObject {
func functionName(parameters) {
//How do I access variableName from here?
}
}
}