weak var label: UILabel! } // set up connection with store and mappings let connection = Connection(store: store, mapStateToProps: mapStateToProps, mapDispatchToActions: mapDispatchToActions) // establish connection and bind to a label func setup() { self.connection.connect() self.connection.bind(\Props.data, to: self.label.rx.text) } // dispatch an action
@IBAction func buttonTap(_ sender: Any) { self.connection.actions.changeData("changedData") }