0

I'm using https://github.com/DeclarativeHub/Bond library for binding operations. I have an UIControl class which is a checkbox. It has a proper called isChecked . I want to bind a boolean value to this property. However, I'm getting

Cannot invoke 'bind' with an argument list of type '(to: Bool)'

error when trying to bind it. How can I achieve this?

viewModel.isDone.map { $0 }.bind(to: containerView.doneCheckBox.reactive.base.isSelected)
chwarr
  • 6,777
  • 1
  • 30
  • 57
Emre Önder
  • 2,408
  • 2
  • 23
  • 73

0 Answers0