text: //
  //  UIButton+LYCategory.h
  //  Example
  //
  //  Created by muios on 2022/4/12.
  //  Copyright © 2022 babo. All rights reserved.
  //
  
  #import <UIKit/UIKit.h>
  
  NS_ASSUME_NONNULL_BEGIN
  
  typedef void(^ButtonActionCallBack)(UIButton *button);
  @interface UIButton (LYAction)
  
  /// 添加点击事件
  /// @param action  事件回调
  /// @param controlEvents 方式
  -(void)addCallBackAction:(ButtonActionCallBack)action
          forControlEvents:(UIControlEvents)controlEvents;
  
  /// 添加点击事件
  /// @param action 事件回调
  -(void)addCallBackAction:(ButtonActionCallBack)action;
  
  @end
  
  @interface UIButton (EnlargeTouchArea)
  
  /**
   *  扩大 UIButton 的點擊範圍
   *  控制上下左右的延長範圍
   *
   *  @param top    上间距
   *  @param right  右
   *  @param bottom 下
   *  @param left   左
   */
  - (void)setEnlargeEdgeWithTop:(CGFloat)top right:(CGFloat)right bottom:(CGFloat)bottom left:(CGFloat)left;
  
  @end
  
  NS_ASSUME_NONNULL_END
  