//
//  UIBarButtonItem+DDCategory.h
//  DDCategoryKit_Private
//  Created by DDIsFriend on 2023/2/6.

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSUInteger, DDBarButtonItemPlacement) {
    DDBarButtonItemPlacementLeft,
    DDBarButtonItemPlacementRight,
};

@interface UIBarButtonItem (DDCategory)
/// @param buttons 按钮数组
/// @param itemPadding 两个按钮间的间距
/// @param placement barButtonItems在导航栏的位置
+ (NSArray<UIBarButtonItem *> *)dd_barButtonItemsWithButtons:(NSArray<UIButton *> *)buttons itemPadding:(CGFloat)itemPadding placement:(DDBarButtonItemPlacement)placement;
@end

NS_ASSUME_NONNULL_END
