publisher
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
974219912b
commit
450f2e17f3
@ -100,6 +100,13 @@ class ButtonViewController: ModelScrollViewController<DefaultButtonModel> {
|
||||
self?.model = viewModel
|
||||
}.store(in: &subscribers)
|
||||
|
||||
button
|
||||
.publisher(for: .touchUpInside)
|
||||
.sink { control in
|
||||
print("clicked me")
|
||||
}.store(in: &subscribers)
|
||||
|
||||
|
||||
//setup UI
|
||||
surfacePickerSelectorView.text = model.surface.rawValue
|
||||
disabledSwitch.isOn = model.disabled
|
||||
|
||||
Loading…
Reference in New Issue
Block a user