-1

The AnimatedButton is inherited AnimatedControl which inherited UIControl, and tap only in UIButton, UIBarButtonItem, NSButton.I can't understand why the tap in redeclaration when I use the extension with where, and if I not add the tap, the xcode will complain don't have the tap. This is the code.

extension Reactive where Base: AnimatedButton {
    var tap: ControlEvent<Void> {
        controlEvent(.touchUpInside)
    }
}
Terriermon
  • 71
  • 6

0 Answers0