mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-19 12:10:55 +00:00
28 lines
736 B
Objective-C
28 lines
736 B
Objective-C
#import <LegacyComponents/TGMenuSheetItemView.h>
|
|
|
|
typedef enum
|
|
{
|
|
TGMenuSheetButtonTypeDefault,
|
|
TGMenuSheetButtonTypeCancel,
|
|
TGMenuSheetButtonTypeDestructive,
|
|
TGMenuSheetButtonTypeSend
|
|
} TGMenuSheetButtonType;
|
|
|
|
@class TGModernButton;
|
|
|
|
@interface TGMenuSheetButtonItemView : TGMenuSheetItemView
|
|
{
|
|
TGModernButton *_button;
|
|
}
|
|
|
|
@property (nonatomic, strong) NSString *title;
|
|
@property (nonatomic, assign) TGMenuSheetButtonType buttonType;
|
|
@property (nonatomic, copy) void(^longPressAction)(void);
|
|
@property (nonatomic, copy) void (^action)(void);
|
|
|
|
- (instancetype)initWithTitle:(NSString *)title type:(TGMenuSheetButtonType)type action:(void (^)(void))action;
|
|
|
|
@end
|
|
|
|
extern const CGFloat TGMenuSheetButtonItemViewHeight;
|