add the touchUpInside since this is the only one using this

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2024-08-09 13:19:33 -05:00
parent c2c88c7b90
commit 0decdb5a16

View File

@ -402,17 +402,15 @@ open class ButtonIcon: Control, Changeable {
centerXConstraint?.activate() centerXConstraint?.activate()
centerYConstraint = icon.centerYAnchor.constraint(equalTo: iconLayoutGuide.centerYAnchor, constant: 0) centerYConstraint = icon.centerYAnchor.constraint(equalTo: iconLayoutGuide.centerYAnchor, constant: 0)
centerYConstraint?.activate() centerYConstraint?.activate()
}
publisher(for: .touchUpInside)
/// Executed on initialization for this View. .sink(receiveValue: { [weak self] _ in
open override func initialSetup() { guard let self, isEnabled,
super.initialSetup() selectedIconName != nil,
onClick = { control in selectable else { return }
guard control.isEnabled else { return } toggle()
if control.selectedIconName != nil && control.selectable { })
control.toggle() .store(in: &subscribers)
}
}
} }
/// This will change the state of the Selector and execute the actionBlock if provided. /// This will change the state of the Selector and execute the actionBlock if provided.