如何使用以元组作为参数的变量创建反应式绑定

How to create a reactive binding with variable taking a tuple as parameter

我正在尝试为我的变量创建一个绑定

var reactiveVariable: (((Bool, Profile)) -> Void)?

但是连接绑定我不明白我不明白如何连接获取元组和参数并从中提取数据。 我试过这样的事情:

VC?.reactiveVariable = { [weak self] (boolean, profile) in
      self?.boolean = boolean 
      self?profile = profile 
 }

感谢您的帮助我不明白我的元组去了哪里

VC?.reactiveVariable = { [weak self] result in
          self?.boolean = result.0 
          self?profile = result.1
   }

当您与某物绑定时,对象是元组还是简单对象并不重要,对象始终作为单个实体出现